Multiple choice technology web technology

Variable scope on which a variable does not loose its value when the function exists and use that value if the function is called again is:

  1. Local

  2. function parameter

  3. static

  4. None of above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Static variables retain their values between function calls, unlike local variables which are reinitialized each time.