+1 vote
in JavaScript by
Which of the following regarding scope is true?

Data that is stored in a variable when a function is called is never cleared out.

All variables you use in your program have to be declared as global variables.

Function parameters are visible in the function in which they are used.

Variables that have a local scope are only visible in the function in which they are declared.
...