Well done!
You have completed Principles and Applications Quiz!
Quiz Question 1 of 6
When invoking a function using apply
versus call
, what is a key difference in how arguments are passed to the function?
Choose the correct answer below:
-
A
apply
can only be used with functions that do not return a value. -
B
Both methods invoke the function in the global scope regardless of the context.
-
C
call
changes the scope ofthis
inside the function, whileapply
does not. -
D
apply
allows you to pass arguments as an array, whilecall
requires them to be passed individually.