Skip to content

Instantly share code, notes, and snippets.

@jackrr
Created May 9, 2017 02:49
Show Gist options
  • Select an option

  • Save jackrr/305fd3eb2bd5b248cefcd37d975d5ea3 to your computer and use it in GitHub Desktop.

Select an option

Save jackrr/305fd3eb2bd5b248cefcd37d975d5ea3 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=305fd3eb2bd5b248cefcd37d975d5ea3
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<div id="pizza"></div>
</body>
</html>
{"enabledLibraries":["jquery"]}
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