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



CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials 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 Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz