Skip to content

Instantly share code, notes, and snippets.

@Bijesse
Created August 10, 2016 16:00
Show Gist options
  • Save Bijesse/d1b9ec645b9e23aa526df48e825d4776 to your computer and use it in GitHub Desktop.
Save Bijesse/d1b9ec645b9e23aa526df48e825d4776 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=d1b9ec645b9e23aa526df48e825d4776
<!DOCTYPE html>
<html>
<head>
<title>Simply ForEach Party Invite</title>
</head>
<body>
<ul id="invite"></ul>
</body>
</html>
var names = ['Tom', 'Erica', 'Chinnell', "Michael", "Courtney", "Joliz", ];
names.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