Functions
5 practice questionsWeb DevelopmentStep-by-step solutions
Try a few
1
A function passed as an argument to another function is called a:
A.callback
B.constructor
C.prototype
D.module
2
A JavaScript function that has access to variables in its outer scope even after that scope has returned forms a:
A.Loop
B.Closure
C.Promise
D.Class
3
In JavaScript, the syntax (x) => x * 2 defines a(n):
A.Object
B.Arrow function
C.Loop
D.Class
Master functions โ not just preview it
All 5 questions with worked solutions, an AI tutor that explains every step, and games that make the drilling stick. Free to start.
Practice this topic freeNo card needed ยท 10 free AI questions daily