-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathq41.js
More file actions
21 lines (21 loc) · 781 Bytes
/
q41.js
File metadata and controls
21 lines (21 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use strict";
// Magicians: Make a array of magician’s names. Pass the array to a function called show_magicians(), which prints the name of each magician in the array.
exports.__esModule = true;
// let magicians = ["Harry Houdini", "David Copperfield", "Penn Jillette", "Teller"];
// function show_magicians(magicians) {
// for (let i = 0; i < magicians.length; i++) {
// console.log(magicians[i]);
// }
// }
// show_magicians(magicians);
function q41() {
var magicians = ["Harry Houdini", "David Copperfield", "Penn Jillette", "Teller"];
function showMagicians(magicians) {
magicians.forEach(function (magician) {
console.log(magician);
});
}
showMagicians(magicians);
}
exports["default"] = q41;
q41();