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

Saturday, November 17, 2012

Codecademy: "More Variables Practice"



// Declare a variable on line 2 called myCountry and give it a string value.
var myCountry="America";
// Use console.log to print out the length of the variable myCountry
console.log(myCountry.length);
// Use console.log to print out the first three letters of myCountry
console.log(myCountry.substring(0,3));

1 comment:


This is an example of scrolling text using Javascript.

Popular Posts