0 votes
in JavaScript by

Which of the following variables takes precedence over the others if the names are the same?

a) Global variable

b) The local element

c) The two of the above

d) None of the above

1 Answer

0 votes
by

Answer: B

Reason: In JavaScript, the local variable takes precedence over the global variable if the name of both local and global variables is the same.

...