Functions & Scope Quiz

Complete this assessment with 100% score to master this chapter.

01How do you declare a function in JavaScript using a function declaration?

02What keyword is used to send a value back from a function?

03What is a closure in JavaScript?

04What is the arrow function equivalent of: function add(a, b) { return a + b; }?

05A variable declared with 'const' inside an 'if' block—can it be accessed outside that block?