Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created August 10, 2016 16:00
Show Gist options
  • Save Bijesse/c0a0486e13493744f69cc91a19e82f9d to your computer and use it in GitHub Desktop.
Save Bijesse/c0a0486e13493744f69cc91a19e82f9d to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=c0a0486e13493744f69cc91a19e82f9d
<!DOCTYPE html>
<html>
<head>
<title>Simply ForEach Party Invite</title>
</head>
<body>
<ul id="invite"></ul>
</body>
</html>
var people = ['Tom', 'Erica', 'Chinnell', "Michael", "Courtney", "Joliz", ];
people.forEach(function(name) {
$("#invite").append("<li>" + "Hi " + name + " You are invited to the party! " + "</li>" );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment