Report Bug

QusWhat is the difference between let, const, and var when declaring variables in JavaScript? Qusजावास्क्रिप्ट में वेरिएबल घोषित करते समय let, constऔर var के बीच क्या अंतर है?


A. let and const are block-scoped, while var is function-scoped
B. var and let are block-scoped, while const is function-scoped
C. const and var are block-scoped, while let is function-scoped
D. They are all function-scoped


Solution
A. let and const are block-scoped, while var is function-scoped



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad