Skip to content

Instantly share code, notes, and snippets.

@mdestafadilah
Created December 29, 2019 02:28
Show Gist options
  • Save mdestafadilah/a07a38f1da7cf7a5a95f4043c800e9c4 to your computer and use it in GitHub Desktop.
Save mdestafadilah/a07a38f1da7cf7a5a95f4043c800e9c4 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/nofelop
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
const people = ['Amanda', 'Farrin', 'Geoff', 'Karen', 'Richard', 'Tyler'];
const excitedPeople = []
for (let i = 0; i < people.length; i++) {
excitedPeople[i] = people[i] + '!'
}
console.log(excitedPeople);
</script>
<script id="jsbin-source-javascript" type="text/javascript">const people = ['Amanda', 'Farrin', 'Geoff', 'Karen', 'Richard', 'Tyler'];
const excitedPeople = []
for (let i = 0; i < people.length; i++) {
excitedPeople[i] = people[i] + '!'
}
console.log(excitedPeople);</script></body>
</html>
const people = ['Amanda', 'Farrin', 'Geoff', 'Karen', 'Richard', 'Tyler'];
const excitedPeople = []
for (let i = 0; i < people.length; i++) {
excitedPeople[i] = people[i] + '!'
}
console.log(excitedPeople);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment