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

Tuesday, December 4, 2012

Codecademy: Codeyear Accessing values within arrays


//sample solution

// Here is an array of multiples of 5. But is it correct?
var multiplesOfFive = [5,10,15,22,25,30];

// Test to see if a number from the array is NOT a true
// multiple of five. Real multiples will return false.
multiplesOfFive[3] % 5 !== 0;

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts