+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.

Related questions

0 votes
asked Mar 17, 2021 in Threat Modeling by sharadyadav1986
0 votes
asked Mar 28 in AWS by DavidAnderson
...