What is the difference between the scoping of a "let" and a "var" declared variable ?

A let declared variable is globally accessible, while a var declared variable is locally accessible.
A let declared variable is locally accessible, while a var declared variable is globally accessible
A let declared variable is block-scoped, while a var declared variable is function-scoped.
A let declared variable is function-scoped, while a var declared variable is block-scoped.
Verified Answer
Correct Option - c

To get all Infosys Certified L2 Junior React Developer Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram