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 कीवर्ड के बीच सही अंतर निर्दिष्ट करता है?
Detailed Solution & Logic
var defined function scoped variable while let define block scoped variable. / var फंक्शन स्कोप्ड वेरिएबल को परिभाषित करता है जबकि let ब्लॉक स्कोप्ड वेरिएबल को परिभाषित करते हैं।
var फंक्शन स्कोप वैरिएबल है जबकि let और Const ब्लॉक स्कोप वैरिएबल है।
Similar Practice Questions
Which CSS attribute(s) should one use to create a pink dotted border around an image?
Which CSS attribute(s) should one use to create a pink dotted border around an image?...
What is the special feature of modern web applications?
What is the special feature of modern web applications? आधुनिक वेब अनुप्रयोगों की विशेष विशेषता...
Which statement is used to come out switch block?
Which statement is used to come out switch block? स्विच ब्लॉक से बाहर आने के...
To cluster a group of elements together to apply formatting___
To cluster a group of elements together to apply formatting___ फोर्मेटिंग ____लागू करने के लिए...
Which of the following is used with the <img> tag as an attribute to specify an alternate text for an image, if the image for some reason cannot be displayed?
Which of the following is used with the <img> tag as an attribute to specify...
Which of the following is used to read a HIM page and render it?
Which of the following is used to read a HIM page and render it? HTML...
What is clear attribute(deprecated)?
What is clear attribute(deprecated)? क्लियर विशेषता (अप्रचलित) क्या है?