Question:

What does the following code print to the console?

love_story = function(x, y) {
  console.log(arguments);
};
love_story("princess", "frog");

Answer:

["princess", "frog"]

Arguments is an array-like object that corresponds with the parameters that are passed into a function.


Keywords:

© 2017 QuizBucket.org