// Practice Set · JS Functions (Part 2) · guest

Guest practice: this set is not saved and does not count.

Question 1 of 5 from: Function Arguments

What does this log?

function findMax() {
  let max = -Infinity;
  for (let i = 0; i < arguments.length; i++) {
    if (arguments[i] > max) {
      max = arguments[i];
    }
  }
  return max;
}
console.log(findMax());
Question 2 of 5 from: Function Arguments

Which statement about the arguments object is true?

Question 3 of 5 from: Function Expressions

What happens when this runs?

function perform(fn) {
  return fn();
}
const sayHello = function () {
  return "Hello";
};
console.log(perform(sayHello()));
Question 4 of 5 from: Function Arrow

What does this log?

const f = (x, y) => { x * y };
console.log(f(3, 4));
Question 5 of 5 from: JS Timers

setTimeout(showMessage(), 3000) waits three seconds and then runs showMessage.

Ready to submit?

Click a question to go back and check it. After you submit, you will see the right answer and an explanation for every question. As a guest, nothing is saved.