Datatype conversion confusion | chai aur #javascript
Summary
TLDRThe video script is part of a JavaScript series focusing on data type conversions, a fundamental concept in programming. It discusses the importance of understanding variable types, such as numbers and strings, and the potential issues that can arise from incorrect conversions. The instructor emphasizes the need for practice to gain proficiency and confidence in handling these conversions, ensuring that viewers will not need to revisit the topic multiple times. The script promises a comprehensive series that will save time and provide quality content, covering topics like functions and indexing in depth.
Takeaways
- 😀 The video is part of a JavaScript series aimed at building confidence in programming concepts by revisiting important topics multiple times.
- 📚 The series will cover topics that are fundamental and will be revisited to ensure thorough understanding, avoiding the need for multiple revisions.
- 💻 The importance of practice is emphasized, suggesting that the more one practices, the more comfortable they will become with JavaScript.
- 🔢 Discussions on functions will be included, with the assurance that they will not be brushed over or only touched upon briefly.
- 🔄 The script delves into the concept of data type conversion, or 'type coercion', in JavaScript, explaining how different data types can be converted.
- 📝 It highlights the need to understand the 'type' of a variable, especially when dealing with values that may come in different formats such as strings or numbers.
- 🎲 The script uses examples like game scores to illustrate the concept of variable declaration and the importance of knowing the underlying data type.
- 🛠️ It explains the process of converting data types using JavaScript, including the use of methods and the examination of output to understand the conversion result.
- 👀 The video emphasizes careful value checking when performing type conversions, as the actual data type might not be immediately apparent.
- 📉 The script mentions potential issues with relying on numbers within JavaScript, as type coercion can lead to unexpected results.
- 🔮 The importance of understanding how values are converted, especially when they are not defined or when they are boolean, is discussed to avoid confusion.
Q & A
What is the main focus of the video series mentioned in the script?
-The main focus of the video series is to delve deeper into JavaScript concepts, with an emphasis on topics that are not covered multiple times, aiming to build confidence among the viewers.
What is the importance of practice mentioned in the video script?
-The importance of practice is highlighted to become comfortable with JavaScript, suggesting that a little common sense and more practice will make viewers confident in handling the language.
What is the significance of understanding the type of a variable in JavaScript as discussed in the script?
-Understanding the type of a variable is significant because it dictates how values are interpreted and manipulated in JavaScript, which is crucial for correct programming and avoiding type-related errors.
Why is it necessary to be cautious when dealing with values received from a front-end request in the script?
-It is necessary to be cautious because the values received might not always be in the expected format, such as a number, and could be a string or even an object, which requires proper handling to avoid errors.
What is the concept of type conversion in JavaScript as alluded to in the script?
-Type conversion in JavaScript refers to the process where a value of one type is treated or transformed to another type, which is a common operation in programming to ensure compatibility and correct execution of operations.
Why is it mentioned that relying solely on numbers in JavaScript might lead to problems?
-Relying solely on numbers might lead to problems because JavaScript is loosely typed, and operations that assume a numeric value might unexpectedly receive a string or boolean, leading to type coercion issues.
What does the script suggest about the relationship between the value '33' and its type?
-The script suggests that even though '33' is a number, it could be received as a string or in another format, and understanding its actual type is essential before performing operations on it.
How does the script address the issue of undefined values in JavaScript?
-The script addresses undefined values by suggesting that if a variable is declared with an undefined value, it should be handled carefully to ensure that the program does not encounter errors due to unexpected types.
What is the significance of the 'value' keyword in the context of the script?
-The 'value' keyword in the script is used to refer to the data that is being manipulated or checked for its type, emphasizing the importance of understanding the actual data type before performing operations.
What does the script imply about the conversion of boolean values to numbers in JavaScript?
-The script implies that boolean values can be converted to numbers in JavaScript, with 'true' converting to 1 and 'false' converting to 0, which is a type of type coercion that developers should be aware of.
What is the final takeaway from the script regarding handling data types in JavaScript?
-The final takeaway is the importance of being vigilant about the types of values being handled in JavaScript, understanding that type conversion is a common occurrence, and being prepared to manage different data types effectively.
Outlines
🔍 Deep Dive into JavaScript Series
In this introductory segment, the speaker sets the stage for an in-depth exploration of JavaScript topics. The series aims to build confidence in the learners by revisiting key concepts multiple times to reinforce understanding. The emphasis is on practice and repetition, ensuring that even challenging topics become manageable. The speaker highlights that the series will cover topics like functions in multiple layers, revisiting them for a deeper understanding and ensuring comprehensive coverage of JavaScript.
💡 Understanding Data Type Conversion in JavaScript
This section dives into the intricacies of data type conversions in JavaScript, using variables like 'score' to illustrate the process. The speaker discusses how different values, such as strings and numbers, might be received and the importance of knowing the type of data being handled. The speaker explains how JavaScript handles type conversion, particularly when dealing with numbers, strings, and objects. They demonstrate how to use methods like 'typeof' to check data types and the potential pitfalls when converting values, such as inadvertently converting strings to numbers.
🕵️♂️ Investigating JavaScript's Conversion Quirks
This paragraph continues the exploration of data type conversions by delving into more complex scenarios, such as what happens when null or undefined values are converted. The speaker highlights potential issues, such as how null converts to zero and how undefined can result in NaN (Not a Number). They also discuss boolean conversions, showing how values like 'true' and 'false' behave when converted to numbers. The speaker stresses the importance of being cautious when relying on JavaScript's type conversions due to these quirks.
Mindmap
Keywords
💡JavaScript
💡Series
💡Confidence
💡Practice
💡Variables
💡Type
💡Conversion
💡Boolean
💡Undefined
💡Investigation
💡Syntax
Highlights
Introduction to a new video in the JavaScript series, emphasizing the importance of revisiting topics for confidence.
Discussion on the necessity of practice to become comfortable with JavaScript concepts.
Explanation of the importance of understanding data types when declaring variables in JavaScript.
Clarification on the difference between a value being a string or a number and its implications for coding.
The concept of type conversion in JavaScript and its significance in coding.
How to handle different data formats and the guarantee of data type when coding.
The use of typeof operator to determine the type of a variable in JavaScript.
Demonstration of converting a string to a number and the potential issues that may arise.
The exploration of converting boolean values to numbers and the expected outcomes.
Investigation into the behavior of JavaScript when converting various data types.
The impact of undefined values on type conversion and coding practices.
Understanding the conversion of null values and their outcomes in JavaScript.
The process of converting objects to primitive values in JavaScript.
Discussion on the conversion of special values like NaN and their handling in code.
The importance of careful value checking during type conversion to avoid confusion.
Summary of the basic concepts of type conversion covered in the video.
Invitation to the audience to subscribe and share the series for motivation and support.
Transcripts
हान जी स्वागत है आप सभी का चाय और कोर्ट
के एक और वीडियो में शुरू करते हैं हमारी
जावास्क्रिप्ट सीरीज को और आगे लेकर जाते
हैं अब इस सीरीज के अंदर क्या है की कुछ
ऐसे टॉपिक्स होंगे जिनको हम एक बार नहीं
दो बार नहीं तीन या चार बार पढ़ेंगे
क्योंकि गोल अभी भी वही है इस सीरीज के
थ्रू मैं आप में कॉन्फिडेंस लाना चाहता
हूं ये बता के जाओ स्कर्ट इतनी भी परिसर
नहीं है अगर थोड़ा सा कॉमन सेंस उसे करें
थोड़ा सा प्रैक्टिस करें थोड़ा और ज्यादा
प्रैक्टिस करें तो इजीली आप इसके साथ
कंफर्टेबल हो जाएंगे तो कुछ इस सीरीज के
दौरान हम जैसे फंक्शंस के बारे में बात
करेंगे तो ऐसा नहीं होगा की एक बार
फंक्शंस के बारे में बात कर ले दोबारा कभी
टच ही नहीं करेंगे दोबारा से रिवीजन में
फंक्शंस आएंगे उसको फिर और इंडेक्स में
जाएंगे तो इस ऐसा मत sochiyega की एक
टॉपिक हो गया है तो आप दोबारा कभी आएगा ही
नहीं और आपने ये चीज तो कवर ही नहीं कारी
सब कवर करेंगे टाइम जरूर लगेगा लेकिन
इंटरनेट की बेस्ट सीरीज बनानी है तो वक्त
तो लगेगा क्वालिटी में टाइम लगता है तो
यहां पर एक और नया वीडियो है हमारे पास जो
की एक कन्वर्शन और ऑपरेशंस चावल के अंदर
कन्वर्जन जो है वो एक बहुत ही बड़ा नाइट
में टॉपिक है ऐवेंंचुअली हम दो इसके बारे
में बात करेंगे तो आपको पता लगेगा की
क्यों ऐसा प्रॉब्लम आता है अब यहां पे हम
कुछ वेरिएबल डिक्लेयर करते हैं अब वेरिएबल
डिक्लेयर करना तो ए ही गया है तो इसका हम
थोड़ा सा एडवांटेज लेते हैं तो हमने क्या
कर यहां पे बोला लेट आगे तो आगे एक
वेरिएबल है या फिर हम किसी का स्कोर ले
लेते हैं क्योंकि यूजुअली मेरा फेवरेट
वेरिएबल होता है तो हमने कहा की स्कोर है
33 सपोस मारियो गेम खेल रहे हैं कॉन्ट्रा
खेल रहे हैं या आजकल के पोकेमोन गेम खेल
रहे हैं अब आपको सबसे पहले पता करना है
इसका टाइप अब टाइप क्यों पता करना है हमें
तो पता है ये नंबर है लेकिन कई बार क्या
होता है आप वसंत पे कम कर रहे हैं फ्रंट
एंड पे जिसने ये कम पूरा किया है उसने
आपको वैल्यू तो सेंड करिए बट वो वैल्यू
किसी फॉर्म से आई है हो सकता है ये वैल्यू
जो स्कोर है इसके अंदर वैल्यूज स्ट्रिंग
के अंदर हो नंबर हो ही ना या फिर हो सकता
है वैल्यू किसी और फॉर्मेट में ऑब्जेक्ट
में हो तो आपके पास कोई गारंटी नहीं है
यहां पे आप लिख रहे हैं तो गारंटी है की
33 है बट कई बार आपको पता ही नहीं होता
वैल्यू कहां से ए रही है जैसे की आप
देखेंगे कई बार क्या होता है हम फ्रंट एंड
रिक्वेस्ट से लेते हैं तो आपने लिखा
रिक्वेस्ट बॉडी
रिक्वेस्ट
बॉडी और यहां से आपके पास वैल्यू ए गया
स्कोर तो आप उसको नाम देते हैं और इस तरह
से आप वैल्यू लेते स्कोर तो लाइन नंबर वैन
के अंदर तो आपको पता है की आपने 100%
स्कोर को एक नंबर लिया लेकिन लाइन नंबर
थ्री में कोई गारंटी नहीं है की ये वैल्यू
स्ट्रिंग आई है या फिर नंबर आया है या
क्या कुछ और आया है तो अभी हमें नहीं पता
है तो अब हम क्या करते हैं एक कंसों लोग
लिखते हैं और हमें पता है की ऑलरेडी दो
तरीके हैं जैसे हमने कहा टाइप ऑफ इस तरह
से भी आप किसी का देख सकते हैं जैसे स्कोर
और एक तरीका और है की आप लिख सकते हैं
इसको ऐसे मेथड यानी की पहले थीसिस के अंदर
तो ये भी से है जैसे आप चाहे जो भी आप
चाहे तो ये रहा तो इसका आउटपुट देखते हैं
की आउटपुट क्या आता है
है तो हमने कहा नोट
01 फोल्डर के अंदर एक जीरो थ्री फाइल है
थर्ड फाइल ए गई है उसको करो तो इसने कहा
दोनों में नंबर अब गौर कीजिएगा की नंबर
दोनों लोअर केस में लिखा हुआ है ठीक है
लेकिन अगर सपोस करिए ये जो 33 है यह कुछ
इस तरह से लिखा होता तो अभी 33 क्या है
डबल कोट्स के अंदर ए गया है तो मतलब ये
स्ट्रिंग बन गया है अब मैं इसको से करता
हूं तो obbvious सी बात है बोल रहा है
स्ट्रिंग अब सपोस करिए आपके पास स्ट्रिंग
में वैल्यू आई है आपको पता है की मुझे
100% जो ऑपरेशन करना है वो नंबर्स पे करना
है तो आप क्या कर सकते हैं एक और नया
वेरिएबल डिक्लेयर कर सकते हैं हम यहां पर
लिख सकते हैं वैल्यू इन नंबर
है तो हम लिख देंगे यहां पर अभी 33 अब
कैसे लिखना है अब यहां पर जो आप नंबर उसे
करते वह कैपिटल उसे करते हैं जितने भी
डाटा टाइप मैंने आपको पढ़ाया हैं जितने भी
तो नहीं बट हम मेजर्ली जो है और भी आपको
पता लग जाएंगे उनका इस तरह से कैपिटल
फॉर्मेट होता है ये क्लास बेस्ड है आगे
जाकर हम देखेंगे अभी इतना ध्यान रखिए की
आप स्ट्रिंग को भी इस तरह से उसे कर सकते
हैं नंबर्स को भी कर सकते हैं अब जैसे
आपने नंबर लिखा उसके बाद आप इसके अंदर
स्कोर पास कर दीजिए आप स्कोर हमने पास कर
दिया है तो ये गारंटी है ये जो स्कोर है
अब वो नंबर में कन्वर्ट हो गया है तो मैं
इसको यहां पे कॉपी कर लेता हूं इस लाइन को
और यहां पे पेस्ट करता हूं अब ये लाइन हो
गई है मेरे पास यहां पे पेस्ट अब मैं क्या
करता हूं इसका मुझे इस बार वैल्यू जानना
है की जो
वैल्यू इन नंबर है
इसका टाइप क्या है तो से करते हैं और
देखते हैं वापस से तो मैंने देखा की इसका
जो टाइप है वह नंबर है अब यहां से होती है
कहानी शुरू की आपने कोई भी वैल्यू दी और
उसको बोला की ठीक है आप उसको कन्वर्ट कर
दो नंबर में तो नंबर में कन्वर्ट हो गई पर
क्या गारंटी है की वो 33 ही आएगा हो सकता
है 33 ए बी सी किसी ने टाइप किया हो या
फिर यही वैल्यू ए रही हो तो क्या ये
कन्वर्ट होगा तो इस तरह से आप डालते हैं
इसको से करेंगे और इसको हम वापस से रन
करके देखते हैं तो हमें वापस से नंबर मिल
गया ये कैसे हुआ अब 33 एबीसी क्या वो नंबर
में कन्वर्ट होना चाहिए था बिल्कुल नहीं
होना चाहिए था तो एक्चुअली में वैल्यू
नंबर के अंदर है क्या इसको भी हम प्रिंट
कर कर देखते हैं की हम इसको प्रिंट करते
हैं की एक्चुअली में नंबर क्या आया है
क्योंकि यही तो कन्फ्यूजन दूर करेगा हमारी
इन्वेस्टिगेशन स्टडी का तो मैं यहां पर
देख रहा हूं की ठीक
पर यह नंबर तो नहीं
नंबर यह जो नंबर है तो इसका जब भी आप
वैल्यू चेक करें तो बहुत ध्यान से करें
क्योंकि कई बार आपके साथ ऐसा होगा की ये
जो 33 एबीसी है जो की पूरे नंबर नहीं है
इसको जवाब कन्वर्ट करेंगे तो वो कन्वर्ट
हो जाएगा
और जब आप एक्चुअली में वैल्यू देखेंगे तो
वो ना है तो नैनो भी एक स्पेशल टाइप है
जिसको आप चेक कर सकते हैं की क्या वैल्यू
ने ये तो नहीं दिया है ठीक है तो इस तरह
से प्लीज ध्यान रखिएगा की आप नंबर्स पर
रिलायंस ना करें जावास्क्रिप्ट के अंदर
थोड़ी सी प्रॉब्लम है थोड़े से शूज हैं
स्ट्रिक्ट चेक नहीं है इसलिए तो टाइप
सिर्फ बहुत सारे लोग उसे करते हैं बट ऐसा
नहीं है की लैंग्वेज का कोई खराब फीचर है
या उसका कोई बाग है इसने उसको कन्वर्ट
करने की कोशिश कारी आगे जाके
डॉक्यूमेंटेशन में आपको बताऊंगा किस तरह
से कन्वर्जन होता है किस तरह से कंबाइंड
होती है वैल्यू बट ये ध्यान रखें क्योंकि
हमने इन्वेस्टिगेशन स्टडी की है तो हमें
पता लग गया है की ठीक है इस तरह के भी
केसेस आते हैं जब आपकी वैल्यूज कन्वर्ट
होती है कई बार नहीं होती है अच्छा अगर ये
तो बात हो गई स्कोर की अगर सपोज करिए
हमारे इसके अंदर वैल्यू नल तब क्या होता
तो यह हम देख लेते हैं क्योंकि हमने
इन्वेस्टिगेशन स्टडीज करनी है तो यह देखा
तो देखिए नल का वैल्यू क्या है इसने
कन्वर्ट कर दिया जीरो अब हो सकता है जीरो
से अपना टेंपरेचर मैच कर रहे हो ध्यान
रखिएगा कई बार जब कन्वर्ट नहीं हो पता है
तो अन्य नबी हमने देखा और जीरो भी देखा नल
के केस में अब इसके बाद एक और बच्चा है
उसको भी देख ही लेते हैं की हमारे पास
वैल्यू है उन डिफाइंड अगर आप अनडिफाइंड
वैल्यू लिख देते हैं तो वापस से आपके पास
ना ए गया तो ठीक है तो हमने कुछ जाना इसके
थ्रू अच्छा एक और चीज है यहां पे अगर कोई
बुलियन वैल्यू आपने लिख दी है ट्रू तब
क्या आएगा तो आप ऐसी बात है ये भी हम
जानना चाहेंगे तो हमने देखा की वैन आता है
तो obbvious सी बात है अगर फॉल्स होती तो
जीरो आता और अगर कोई स्ट्रिंग है जो की
कन्वर्ट नहीं हो सकती जैसे की सपोर्ट करिए
हितेश है और ऐसी बात है की किसी नंबर में
कन्वर्ट नहीं हो सकता तो यहां पर आपको
वापस से मिल जाएगा तो जब भी आप कुछ
कन्वर्जन करें इस तरह का तो ध्यान रखिएगा
क्या क्या कन्वर्जन में ए सकता है अब हम
कुछ नोट्स तो यहां पे लिख ही सकते हैं
सबसे पहले हमने देखा की जब आप एक नंबर को
कन्वर्ट करते हैं 33 को तो वह इजीली
कन्वर्ट हो जाता है 33 में लेकिन उसके बाद
हमने देखा की जैसे हमने देखा की 33 कुछ ए
बी सी है तो ये कन्वर्ट नहीं हो का रहा है
तो इस तरह के नंबर्स हमें वैल्यू देते हैं
ना जिसका शॉर्ट फॉर्म है मतलब लॉन्ग फॉर्म
है नॉट एन नंबर तो प्लीज ध्यान रखिएगा बट
इसका जो टाइप है
ये थोड़ा सा कन्ज्यूरिंग है इसके बाद हमने
देखा की अगर हम वैल्यूज लेते हैं कुछ इस
तरह की ट्रू तो वो कन्वर्ट हो जाती है वैन
के अंदर तो obbvious सी बात है की हमारे
जो फॉल्स वैल्यू है वो कन्वर्ट हो जाती है
जीरो के अंदर और इसके अलावा भी आपने सब
देख ही लिया है की किस तरह से कन्वर्जन
होता है तो ये तो हुआ हमारा बेसिक
कन्वर्जन अच्छा इसके अलावा इसी तरह से
हमारे पास और भी थोड़ा सा कन्वर्जन है ये
तो हमारे नोट्स हो गए तो सपोर्ट करिए और
हम कन्वर्जन करते हैं तो इस लोग इन तो ये
हमारी जो वैल्यू है ये है सपोज करिए हम
इसको वैल्यू को दे रहे हैं की किसी तरह से
मुझे इस वैल्यू को कन्वर्ट करना है
बोलियां
है तो obbvious सी बात है
बट क्या हो अगर मैं इस लोग डैन को लिखूं
वैन तो कन्वर्जन कैसे होगा तो एक और
वेरिएबल डिक्लेयर करते हैं तो इसको हम लिख
देते हैं बोलिए
जैसे हमारे पास नंबर था जैसे हमारे पास
स्ट्रिंग है कैपिटल में वैसे हमारे पास
बुलियन भी है तो ये बुलियन के अंदर आप
वैल्यूज पास कर सकते हैं इस लॉक्ड इन बट
यह जानना बहुत जरूरी है की एक्चुअली में
वो कन्वर्ट हुई और कन्वर्ट हुई तो क्या
कन्वर्ट हुई तो हम इसकी वैल्यू को देखते
हैं कॉपी करके यहां पेस्ट करते हैं और
जानते हैं अब सबसे पहले हम क्या करेंगे इन
वैल्यूज को जो भी है हम इनको कमेंट आउट कर
देते हैं ताकि हमें ज्यादा आउटपुट ना
देखना पड़े क्योंकि इन्वेस्टिगेशन स्टडी
तो ऑलरेडी हो ही गई है तो अब सिर्फ हमें
मतलब है इससे की जब हम नंबर्स को इस तरह
से बोलियां कन्वर्ट करते हैं क्योंकि कई
बार हम बोल देते हैं जीरो का मतलब फॉल्स
वैन का मतलब ट्रू तो एक्चुअली में
कन्वर्जन में क्या होता है
तो इस तरह से जब आप वैन को कन्वर्ट
पता है वैन को कन्वर्ट करेंगे ट्रू होगा
जीरो को कन्वर्ट करेंगे फॉल्स होगा बट
इसको कन्वर्ट करेंगे तो क्या होगा देखते
हैं
फॉल्स ठीक है अब इसके बाद अगर मैं इसमें
मेरा नाम लिख देता हूं तो क्या होगा तो
मैंने देखा तो भी ट्रू आता है और अगर मैं
एम्टी रखता हूं तो जस्ट अभी हमने देखा की
वैल्यू फॉल्स आती है तो इससे यह तो पता लग
गया की जब आप कन्वर्जन करते हैं तो कुछ ना
कुछ सिंटेक्स है जो की आगे जाकर आपको और
पता लग जाएंगे बट उनका ध्यान रखना थोड़ा
जरूरी है तो यहां पे हमारी इन्वेस्टिगेशन
स्टडी ने बताया की जब आप वैन लिखते हैं तो
obbvious सी बात है बोलियां में वो ट्रू
कन्वर्ट होता है और इसी तरह से जीरो जब आप
लिखते हैं तो वो फॉल्स में कन्वर्ट होता
है
अगर लिख पाए तो फॉल्स ठीक
तो हमारे पास वैल्यू आई फॉल्स और जब हमने
स्ट्रिंग के अंदर कुछ वैल्यू ऐड कर दी
जैसे की सपोर्ट करिए तो उसका जो वैल्यू
आया वो ट्रू आया और ये बन गया आपके नोट्स
अब इसके लिए आप कॉपी पेन लेकर घिसने की
जरूरत थोड़ी ना है यहीं पे सब कुछ लिख रहे
हैं तो यहीं पे हमारे ये नोट्स हो गए यहीं
पे हमारी इन्वेस्टिंग स्टडी हो गई और हमने
फटाफट देखा है की कितना आसान था की जो
कन्वर्जन है वो हमने पढ़ लिया अच्छा अब
कन्वर्जन की बात क्या है की यहां पे खत्म
नहीं होती है कन्वर्जन ये तो हमने देखा की
ठीक है आपने नंबर के अंदर कन्वर्ट किया
चीजों को आपने चीजों को बोलियां के अंदर
कन्वर्ट कर बट चीजें स्ट्रिंग के अंदर भी
तो कन्वर्ट हो सकती है जैसे मेरे पास सैम
नंबर कोई नंबर है क्योंकि वैरियेबल्स नहीं
ए रहा है दिमाग में तो सब नंबर है जिसका
33 हमने नंबर दिया अब मुझे इसको लेट
स्ट्रिंग नंबर
इसको कन्वर्ट करना है तो ऐसी बातें मैं
स्ट्रिंग को उसे कर सकता हूं और इसके अंदर
यह सब नंबर पास कर सकता
लॉक करके देखते हैं इसको भी की क्या
वैल्यू आती है
तो स्ट्रिंग नंबर से करते हैं और ओबवियस
सी बात है इस कंसोल को हटा देते हैं ताकि
ये प्रिंट ना हो
से करते हैं और रन करके देखते हैं इसको तो
मैंने देखा 33 ए गया है तो ठीक है 33 आपका
जो नंबर था वही 33 ए गया है लेकिन असली
में सच्चाई मुझे तब पता लगेगी की एक्चुअली
मैं हुआ क्या है जब मैं इसका टाइप ऑफ करके
देखता हूं की एक्चुअली मैं क्या टाइप हुआ
है क्या सही में वो नंबर अब स्ट्रिंग बन
गया है हान स्ट्रिंग बन गया दिखने में
नंबर जैसा है बट बंद तो स्ट्रिंग है
है तो इसी तरह देख सकते हैं की और
कन्वर्जन हो सकता है अब और भी बहुत सारे
कन्वर्जन है ऑब्जेक्ट्स के हैं यह सब हैं
तो धीरे-धीरे हम देखेंगे और सबसे बेस्ट
पार्ट पता है क्या है इन्वेस्टिगेशन स्टडी
अगर आपके भी दिमाग में ए रहा है की ठीक है
अगर इस तरह का नंबर और कन्वर्ट हो या इस
तरह का हो ये कन्वर्जन आगे जाके और आपको
क्लियर होंगे जैसे जैसे हम फॉर्म्स पे कम
करेंगे जैसे सजा स्क्रिप्ट के प्रोजेक्ट्स
बनाएंगे तब हमारे पास बहुत इजी होगा
क्योंकि जो ब्राउज़र है वो ज्यादातर आपको
स्ट्रिंग्स वैल्यू देता है पर आपको कई बार
उसको बुलियन में कन्वर्ट करना होता है कभी
नंबर में कन्वर्ट करना होता है या
ऑब्जेक्ट में कन्वर्ट करना होता है या एरा
में तो वो हम आगे जा के और देखेंगे अभी के
लिए हम इतना ही करते हैं बहुत ही इसे था
अभी हमें ऑपरेशंस के बारे में और थोड़ा सा
डिस्कस करना है इसी के अंदर डिस्कस करेंगे
इसी फाइल के अंदर बट अभी अत लिस्ट इसको तो
पुश कर देते हैं तो हर फाइल के बाद हम
इसको पुश करते हैं तो हमने यहां पे डिस्कस
किया कन्वर्जन ऑफ
डाटा टाइप्स के बारे में डिस्कशन हो गया
है तो इसको हमने पुश कर दिया कमेंट कर
देते हैं और इसको कर देते हैं
आपके पास अवेलेबल हो तो मिलते हैं अगले
वीडियो में याद रखिए सब्सक्राइब करना बहुत
जरूरी और फैला दीजिए सीरीज को सबके सामने
क्योंकि यहां पे हो रही है बेस्ट
जावास्क्रिप्ट तो सारे फ्रेंड्स को बताना
तो जरूरी है हमें मोटिवेशन मिलेगा मिलते
हैं अगले वीडियो में
関連動画をさらに表示
Quality of Service (QoS) PART-1 Explained in Hindi l Embedded and Real time Operating System Course
#8 Type Conversion & Coercion in JavaScript
NEW: Conversions and Key Events in Google Analytics 4
Why string to number conversion is confusing | chai aur #javascript
TypesNTypeConversion
C++ Strings | What is String? full Explanation
5.0 / 5 (0 votes)