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

Tuesday, December 4, 2012

Codecademy: Codeyear Primitive values in arrays


//sample solution


// This array has lots of different data types in it
var manyThings = ["peanut butter", 1972, "Teletubby", 13.2, true];

// Pick one item
var someThing = manyThings[4];

// And see what data type it is!
console.log(typeof someThing);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts