Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, December 5, 2012

Codecademy: Codeyear Splitting Names (Part 1)


//sample solution

var name = "John Doe";
var getFirstName = function(fullName){
var i = 0;
var length = fullName.length;
while(i<length){
console.log(fullName[i]);
i++;
}
};
//test
getFirstName(name);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts