ww2 1

ww2

//Sad times.

var timetravel(date) {}
var find(who) {var x = who}
var kidnap(who, how) {}

timetravel(4/20/1889);
find(hitler);
kidnap(x, potato sack);

mission accomplished

Here is what the above code is Doing:
1. It’s defining a function called timetravel that takes a date as an argument.
2. It’s defining a function called find that takes a person as an argument.
3. It’s defining a function called kidnap that takes a person and a method as arguments.
4. It’s calling the timetravel function with the date 4/20/1889.
5. It’s calling the find function with the person hitler.
6. It’s calling the kidnap function with the person x and the method potato sack.
7. It’s printing the string mission accomplished.

Similar Posts