This file contains hidden or 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
| <header> | |
| <h1><a href="index.html" title="Home Page">leecameron.me</a></h1> | |
| <nav class="main-nav"> | |
| <ul> | |
| <li><a href="about" title="About Lee Cameron">About</a></li> | |
| <li><a href="projects" title="My projects">Projects</a></li> | |
| <li><a href="blog" title="My personal blog">Blog</a></li> | |
| </ul> | |
| </nav> | |
| </header> |
This file contains hidden or 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
| <header> | |
| <h1><a href="index.html" title="Home Page">leecameron.me</a></h1> | |
| <nav class="main-nav"> | |
| <ul> | |
| <li><a href="about" title="About Lee Cameron">About</a></li> | |
| <li><a href="projects" title="My projects">Projects</a></li> | |
| <li><a href="blog" title="My personal blog">Blog</a></li> | |
| </ul> | |
| </nav> | |
| </header> |
This file contains hidden or 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
| /* | |
| * Programming Quiz: Colors of the Rainbow (6-4) | |
| */ | |
| var rainbow = ["Red", "Orange", "Blackberry", "Blue"]; | |
| // your code goes here | |
| //remove "Blackberry" and add "Yellow" and "Green" | |
| rainbow.splice(2, 1, "Yellow", "Green"); | |
| rainbow.push("Purple"); |
This file contains hidden or 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
| /* | |
| * Programming Quiz: The Price is Right (6-3) | |
| */ | |
| var prices = [1.23, 48.11, 90.11, 8.50, 9.99, 1.00, 1.10, 67.00]; | |
| // your code goes here | |
| prices[0] = 1.24; | |
| prices[2] = 90.20; | |
| prices[6] = 1.15; |
This file contains hidden or 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
| /* | |
| * Programming Quiz: Building the Crew (6-2) | |
| */ | |
| var captain = "Mal"; | |
| var second = "Zoe"; | |
| var pilot = "Wash"; | |
| var companion = "Inara"; | |
| var mercenary = "Jayne"; | |
| var mechanic = "Kaylee"; |
This file contains hidden or 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
| /* | |
| * Programming Quiz: UdaciFamily (6-1) | |
| */ | |
| // your code goes here | |
| var udaciFamily = ["Julia", "James", "Lee"]; | |
| console.log(udaciFamily); |
This file contains hidden or 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
| /* | |
| * Programming Quiz: Inline Functions (5-6) | |
| */ | |
| // don't change this code | |
| function emotions(myString, myFunc) { | |
| console.log("I am " + myString + ", " + myFunc(2)); | |
| } | |
| // your code goes here |
This file contains hidden or 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
| /* | |
| * Programming Quiz: Cry (5-5) | |
| */ | |
| // your code goes here | |
| var cry = function crySound() { | |
| return "boohoo!"; | |
| } | |
| console.log(cry()); |
This file contains hidden or 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
| /* | |
| * Programming Quiz: Laugh (5-4) | |
| */ | |
| var laugh = function(num) { | |
| var sound = ""; | |
| for (x = 1; x <= num; x++) { | |
| sound += "ha"; | |
| } | |
| return sound + "!"; |
This file contains hidden or 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
| /* | |
| * Programming Quiz: Build A Triangle (5-3) | |
| */ | |
| // creates a line of * for a given length | |
| function makeLine(length) { | |
| var line = ""; | |
| for (var j = 1; j <= length; j++) { | |
| line += "* "; | |
| } |
NewerOlder