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

Saturday, November 17, 2012

Codecademy: "Change Variable Values"



//sample solution

//On line 2, declare a variable myName and give it your name.
var myName = "Nathan";
//On line 4, use console.log to print out the myName variable.
console.log(myName);
//On line 7, change the value of myName to be just the first 2
//letters of your name.
myName = "Na";
//On line 9, use console.log to print out the myName variable.
console.log(myName);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts