This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* FreeCodeCamp - Nesting For Loops Challenge. | |
Total: 75 Lines on Gist. | |
Before we get into the challenge instructions and process, | |
I'd like to have an extended review for Accessing Complex Arrays & | |
iterating across arrays using for loops. Then we'll move into the complex arrays. | |
For this process, let's first create an array: | |
var arr = ["B", "D", "F", "H", "J", "L"]; // Even letters. | |
To access "B" we use arr[0]; and "J" is arr[4]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Record Collection: (I have added the instructions to the comments.) | |
// First we need to understand that collection is an object with children objects. | |
// collections is an object with 4 properties: 2548, 2468, 1245 & 5439 | |
// Each of those object properties have a child object. | |
// Those child objects can have up to three properties: album, artist & tracks | |
// Of those album & artist are strings and tracks is an array. | |
// Write a function which takes an album's id (like 2548), | |
// a property key (or name) ... prop (like "artist" or "tracks"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<title> | |
Joseph A. Tracy's Assignement Three | |
</title> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> |
NewerOlder