Quiz

JavaScript Functions Quiz

8 questions about functions: declarations, default parameters, arrow functions, and closures.

8
questions
~4 min
to complete
instant result
Question 1 of 8
How do you declare a regular function?
Question 2 of 8
What does a function return if it has no return?
Question 3 of 8
What's a default parameter?
Question 4 of 8
How does an arrow function differ from a regular one when it comes to this?
Question 5 of 8
What is a closure?
Question 6 of 8
What does function sum(...nums) {} do?
Question 7 of 8
Can a function be passed as an argument to another function in JavaScript?
Question 8 of 8
What is a recursive function?
0/8