Web technologies Questions | Node.js Quiz | Set-1 | Question 8
What is the default scope in the Node.js application ?
(A)
Global
(B)
Local
(C)
Global Function
(D)
Local to object
Answer: (B)
Explanation:
Local is the default scope in the Node.js application. Local variables are defined within the function. Variable has the local scope it means that they can only be used within the function that defines them.
// 2 option is the same, and is mentioned as “A” but in the explanation it is B
Quiz of this Question
Please comment below if you find anything wrong in the above post
Last Updated :
30 Sep, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...