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.

Related questions

0 votes
asked Sep 11, 2022 in Scala Constructs by sharadyadav1986
+1 vote
asked Mar 22, 2021 in JavaScript by Robindeniel
...