Created
May 9, 2017 02:49
-
-
Save jackrr/305fd3eb2bd5b248cefcd37d975d5ea3 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=305fd3eb2bd5b248cefcd37d975d5ea3
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Page Title</title> | |
| </head> | |
| <body> | |
| <div id="pizza"></div> | |
| </body> | |
| </html> |
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
| {"enabledLibraries":["jquery"]} |
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
| var toppings = ["pineapple", "pepperoni", "speck", "bbq sauce", "mushroom"]; | |
| // TODO: Make the loop print every pizza topping | |
| for (var index = 0; index < 3; index = index + 1) { | |
| $("#pizza").append("<p>"+toppings[index]+"</p>"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment