no-- I've seen people talk about it, i know its doable-- something about its supported, depends on your browser, and ... babel? could be making that up though, I'm a newbie and only half pay attention to things way above my level--

give me a minute or two to see if i can find a convo on it with some possibly useful info

JS waypoint: Profile Lookup. Het guys, not looking for specific help on this, but can someone who's completed this waypoint before let me know if the solution includes a loop? It came right after the loop section, so it's stands to reason that it would, but it seems to be a little different than previous examples so just trying to make sure I'm on the right track. Thanks in advance.

Algorithm Sum All Primes

Explanation:

The explanation for this problem is very simple. You will generate a list of prime numbers up to the number you are given as a parameter. Then you need to add them all up and return that value. The tricky part is on generating the list of prime numbers. I suggest you find a code or a good math algorithm that you can turn into code.

I agree with @moigithub -- there's something not quite right about what you're doing ... the only time you would have difficulty is if you are defining a parameter within a function call ... but then you wouldn't be using object notation in that case ... but if you have a variable, you should be able to use an arithmetic expression with a variable as the value passed as a parameter ...

@mizujin Oh? i read somewhere that I have to "RELOAD" the twitter widget since it only runs once so the moment the document is "ready" it alrady asigns "REPLACE ME" and clicking the button for the random quote doesn't reload the twitter widget so it doesn't repopulate with the new quote....

@RadEdje cuz.. instead of writing all the code above.. u can just append to ur code a script tag n point to https://platform.twitter.com/widgets.js<script src = "https://platform.twitter.com/widgets.js" />instead of this :point_up: May 17, 2016 8:29 PM

@eduwin7 -- yes as I mentioned earlier ... there are 2 separate and distinct things you need to do in this challenge ... the first is to determine how to adjust the count value, the 2nd is to actually use the count value and output a message based on the value ...

@moigithub Okay... I'll give that a try. No time left anymore. I have to go back to "to my Other Job" hehe... really wish I could keep asking you for advice on this topic when I get back to freeCodeCamp...

@moigithub I couldn't resist... I had to try your suggestion first before I left... It doesn't mess with my other script src's anymore but the twttr.widgets.createShareButton( "-", document.getElementById("twitter-button"), { size: "large", text: html, count: "none" } );

still doesn't work

btw is use html as the variable per codecamp's example... so it's defined as var html = "" I'll just study your suggestions for a while .

@eduwin7 Your code is not correct, you are coding to the tests, not the instructions. The instructions are to increment count for 2-6 and decrement for 10-A and then return count + a string based on the value of count.

Challenge Make Object Properties Private

Objects have their own attributes, called properties_, and their own functions, called _methods.

You can use the this keyword to reference public properties and methods of the current objects. However, when You need to create private ones so they are not accessible from the outside of the object you just remove the keyword this from the object property or method declaration and declare it with var so that it is private outside its scope.

@OneRandomJamie ok, basically we're trying to build a result string that is a sentence with the four components given... (noun, adjective, etc) have you identified a sentence (madlib) yet? once you have a sentence - we will use the result var/iable (which has already been declared) to construct/build the complete sentence.... :)

hey Campers! I finished the Mutations challenge just now. I took some time away from FCC so I'm trying to clear out some cobwebs. My code works, but I feel like this could have been much simpler with nested functions.. any suggestions ?

@teeGTee let's carefully examine the (instruction) statement: "Assign the contents of a to variable b." we want to set the value of variable b to the value of variable a. make sense? a already has the value we need. we just need to transfer it into var/iable b....

Hi all, I'm javascript beginner, but because the professor need i make a pagination, i found a method, http://paginationjs.com/ , but i dont know how to use this, i try and try but get nothing help :( can some body help me? thank u very much :)

Hi all, I'm javascript beginner, because the professor need i make a pagination, i found a method, http://paginationjs.com/ , but i dont know how to use this, i try and try but get nothing help... i'm stuck in three weeks, someone can help me? thank u very much .

@GregJacoby== is correct to coerce a value into truthy or falsy. For example, "false" is truthy, because it's not an empty string. Also, in your loop, splicing arr will affect the length of arr. To fix this, when arr[i] is falsy and arr is spliced, decrement i by one.

@duaraghav8 okay - so without the !arr[i]bouncer([false, null, 0, NaN, undefined, ""]) returned [null, null, null] why is that??? and using !arr[i] fixed that, but it's still not completely working. but why did that null thing happen?

@GregJacoby I remember reading the mechanics of the ! operator in JS. I don't remember the exact detail, but ! simply evaluates all the NaN, undefined, false values to TrueYou're welcome :)Also let me know what the problem is even after you use the !arr [i]

@duaraghav8 well, when i pass through bouncer([1, null, NaN, 2, undefined]) it only returns [1] instead of [1, 2] and thank you so much again. i just read about how it works and i understand it a lot better. i also looked at the solution code, which is one line using filter, but i wanted to figure it out without using that first. but yeah, i dont understand what's going wrong here!

@GregJacoby its how indexOf workssay I have an array [10, 20, 50, 30, 20]Your intension was to use indexOf to get the index of the LAST 20, but it ends up returning index of the first 20 it encounter => 1Try relating it with thatALso, yes even I though the most elegant solution was simply filter () but I think now you'll be more careful

Hey guys, I'm javascript beginner, the professor need i make a pagination, i found a method, http://paginationjs.com/ , but i dont know how to use this, i try and try but get nothing help... i'm stuck in three weeks, someone can help me? thank u very much .

<scriptsrc="js/plugins.js"></script><scriptsrc="js/main.js"></script><divid="color"><p>Click on the button to display a random number</p><buttononclick='myFunction()'>Click Here for Random Number</button><h1id="demo"></h1></div >

@WapmasterRohan : You're not sorting array correctly. :) The Array.prototype.sort function takes a function as argument. This function should implement the logic that determines sorting method. So to sort the array in ascending order, you do something like

@123xylem There could be two errors: Either the wikipedia-API-url or the ajax-call. I'm afraid I don't have time to help anymore but I recomend you to go through the documentation for jQuery.ajax() and the Wikipedia Search API one more time and verify that you're using the right values :)

@WapmasterRohan : Secondly, if you want to find if particular element exists in array, you don't need to iterate through the array. Array.prototype has a method called indexOf to check if the element exists in the array.

@WapmasterRohan MDN: If compareFunction is not supplied, elements are sorted by converting them to strings and comparing strings in Unicode code point order. For example, "Banana" comes before "cherry". In a numeric sort, 9 comes before 80, but because numbers are converted to strings, "80" comes before "9" in Unicode order.

@WapmasterRohan : Every character you see on the screen is encoded in a way that the computer can understand.There are various methods of character encoding. Earlier, it used to be ASCII now we support various characters from other languages like Hindi, Chinene, ASCII is no longer sufficient to encompass all the characters. So other standards were developed.

One of those standards is Unicode. It comes in variations like UTF-8, UTF-16 etc.

So when you have a character W, it is represented with a unicode encoding in memory. So when they say unicode sorting or ASCII sorting what they mean is that the characters are compared based on the code that represents that character based on the encoding scheme in use. Not necessarily ASCII.

@lyett multiplyAll is function name... use arr instead. and product *= multiplyAll[i](if multiplyAll is assumed to be the array) then this represents sub array so you are multipling subarray with product, i don't think it works that way.. try using both i and j

You will also need to provide additional strings, which will not change, in between the provided words.

We have provided a framework for testing your results with different words. The tests will run your function with several different inputs to make sure all of the provided words appear in the output, as well as your extra strings.

wordBlanks("","","","") should return a string.wordBlanks("dog", "big", "ran", "quickly") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).wordBlanks("cat", "little", "hit", "slowly") should contain all of the passed words separated by non-word characters (and any additional words in your madlib).

no problem :) sorry if i sounded hostile, i'm struggling to find the right words but it's a common thing on the channel to just give the answers which i think isn't the best solution

sometimes if someones obviously got the logic and just has a typoe, or uses the wrong variable somewhere or something it makes sense to just tell them where it's wrong and pass the solution, but normally i start off with clues and analogies.

++myVar first increments myVar, then evaluates to the incremented value (in contrast to myVar++, which also increments myVar, but evaluates to the old value), so myVar = ++myVar; should be same as ++myVar;

@ajithvallabai You cannot decide whether to include something based on a single match, you would have to make sure the element is not anywhere in the whole other array before you push it to the result array.

Hi all, I'm trying to split each word of a string into seperate arrays of alphabets, within a larger array of the whole string. What I'm looking for is this ["I","'","m"] ["a"]["l","i","t","t","l","e"]...you get the point,

remember myuuks if you take "one word" + "another word" you get "one wordanother word" so when you add two words together which are stored as variables, like myAdjective and myNoun, you need to use myAdjective + " " + myNoun

yeah, having not fixed data types is a brave new world for me too @Myuuks

@cnj1987 ok so the challenge is pointing out how returns work. when you call a function it will send back a piece of information in the return statement. but if you don't do anything to capture that information it just gets lost. so here they want you to declare a variable next to the processArg(7) line like var processed = processArg(7);

Adding Snippets To Your Sublime Text Installation

If you are a user of sublime text (I hope you are, it kicks ass. You can get it here), then you may have already noticed some of the tab completion capabilities. For example, when you are opening an html tag such as <p>, it automatically closes the tag as soon as you type /. You can get similar functionality for pieces of code you end up re-writing over and over, and it's surprisingly easy!

@ush19 [] notation is also used for accessing properties. You can use dot notation only if the property name is a valid identifier name and it is static, as collection.id would equal collection["id"], which has nothing to do with variable id.