Skip to content

Instantly share code, notes, and snippets.

@venkat
Created April 30, 2017 22:36
Show Gist options
  • Save venkat/189ec24a6da0f3c32176f6a373308d8f to your computer and use it in GitHub Desktop.
Save venkat/189ec24a6da0f3c32176f6a373308d8f to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=189ec24a6da0f3c32176f6a373308d8f
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<span id="badveggie"></span> is a vegetable I don't like at all!
<br/>
<br/>
<span id="goodveggie"></span> is a vegetable I love!
<br/>
<br/>
<span id="mehveggie"></span> is a vegetable I don't care much about.
</body>
</html>
{"enabledLibraries":["jquery"]}
var vegetables = ["broccoli", "carrot", "mushroom"];
$("#badveggie").append(vegetables[0]);
$("goodveggie").append(vegetables[1]);
$("mehveggie").append(vegetables[2]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment