What is the proper syntax to declare an integer variable in JavaScript?…
What is the proper syntax to declare an integer variable in JavaScript?
JavaScript में एक integer वेरिएबल घोषित करने का सही सिंटैक्स क्या है?
Detailed Solution & Logic
Var nums
Variables are used to store information. Variable is like a container in which we can store the value and use it when required. To declare integer variable in JavaScript var num; syntax is used. Normally, to create a variable in JavaScript, there is no need to specify the data type of the variable. Any type of data can be stored in a variable. JavaScript datatype of that data understands automatically. / स्पष्टीकरण: वेरिएबल का उपयोग जानकारी संग्रहीत करने के लिए किया जाता है। वेरिएबल एक कंटेनर की तरह है जिसमें हम मान संग्रहीत कर सकते हैं और आवश्यकता होने पर उसका उपयोग कर सकते हैं। JavaScript में integer वेरिएबल घोषित करने के लिए var num; सिंटैक्स का उपयोग किया जाता है। सामान्यतः, JavaScript में वेरिएबल बनाने के लिए वेरिएबल का डेटा प्रकार निर्दिष्ट करने की आवश्यकता नहीं होती है। किसी भी प्रकार का डेटा वेरिएबल में संग्रहीत किया जा सकता है। JavaScript उस डेटा का डेटा प्रकार स्वचालित रूप से समझ लेता है।
Similar Practice Questions
Who invented JavaScript? / JavaScript का आविष्कार किसने किया?
Who invented JavaScript? JavaScript का आविष्कार किसने किया?
Which keyword is used to declare variables in JavaScript? / JavaScript में…
Which keyword is used to declare variables in JavaScript? JavaScript में वेरिएबल घोषित करने के...
Angular JS application is mix of. / Angular JS एप्लिकेशन का मिश्रण…
Angular JS application is mix of. Angular JS एप्लिकेशन का मिश्रण है।
What types of image maps are used with JavaScript- / JavaScript के…
What types of image maps are used with JavaScript- JavaScript के साथ किस प्रकार के...
By which symbol can multiple declarations be separated? / किस चिह्न द्वारा…
By which symbol can multiple declarations be separated? किस चिह्न द्वारा कई घोषणाओं को अलग...
Where should the script tag be placed- / script टैग कहाँ रखा…
Where should the script tag be placed- script टैग कहाँ रखा जाना चाहिए-
Which types of variables appears in JavaScript code everywhere? / किस प्रकार…
Which types of variables appears in JavaScript code everywhere? किस प्रकार के वेरिएबल JavaScript कोड...