top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

JavaScript: Which of the following type of variable takes precedence over other if names are same?

0 votes
2,643 views
AGlobal Variable
BLocal Variable

Correct Option: 2  

Explanation:
A local variable takes precedence over a global variable with the same name. Its true not only for the JavaScript but most of the programming language.
posted Nov 27, 2017 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

...