MCQ Answer

Which statement specify correct difference between var and let keywords in JavaScript ?

Which statement specify correct difference between var and let keywords in JavaScript ?

कौन सा कथन जावास्क्रिप्ट में var और let कीवर्ड के बीच सही अंतर निर्दिष्ट करता है?
Topic : JS Basic Syntax and Data Types

A. var defines a variable while let defines a constant.

B. There is no such major difference between them.

C. The value of a variable declared with var can be changed while the value of a variable declared with let cannot be changed.

D. var defined function scoped variable while let define block scoped variable.




Correct Answer is :

D. var defined function scoped variable while let define block scoped variable.



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