Comparison of datatypes in javascript | chai aur

  Рет қаралды 187,630

Chai aur Code

Chai aur Code

Күн бұрын

Пікірлер: 181
@skill.spirit
@skill.spirit Жыл бұрын
best javascript course exact point on point teaching without overexplanation , great sir I loved your way of teaching Thanks for such a valuable course
@chaiaurcode
@chaiaurcode Жыл бұрын
Thanks 👍
@avichalyadav_dei
@avichalyadav_dei Жыл бұрын
seriously !!! 💯
@Sapien_01
@Sapien_01 Жыл бұрын
संगणक की भाषा में अच्छी पकड़ और समझाने के तरीके से हम बहुत खुश हुए और हमें बहुत मजा आया
@vaishnavikumbhakarna2696
@vaishnavikumbhakarna2696 Жыл бұрын
Best javascript course I have ever learn from . Very nice and undoubtful explanation 👌👍
@SyedaMuskanAliShah
@SyedaMuskanAliShah 26 күн бұрын
Sir me ny KZbin sy bhut tutorial dhky hn pr ap ki series sy jo confident ur motivation mile ha wo ur kahi sy ni mil skii.. ab lgta ha coding muskil ni ha ur ap ka parhany ka tariqa bahtreen ha...❤
@elyramzan
@elyramzan Жыл бұрын
Type Conversion:- > from to Numbers: "33" => 33 "33abc" => NaN true => 1; false => 0 > from to Boolean: 1 => true; 0 => false; NaN => false; "" => false; "hitesh" => true; >convert during operations =>if string is written first then convert all after it to string: "2" + 2 + 2 = 222 "1" + 2 = 12 =>if string comes after then the conversion occurs at last 2 + 2 + "2" = 42 1 + 1 + "2" + 2 + 1 = 2221 #use +operand to convert the operand to number
@ambaradhikari7425
@ambaradhikari7425 Жыл бұрын
The reason is that an equality check == and comparisons > < >= = 0 is true and (1) null > 0 is false. On the other hand, the equality check == for undefined and null is defined such that, without any conversions, they equal each other and don’t equal anything else. That’s why (2) null == 0 is false. null is treated in a special way by the Equals Operator (==). In a brief, it only coerces to undefined: null == null; // true null == undefined; // true Value such as false, '', '0', and [] are subject to numeric type coercion, all of them coerce to zero.
@indian-shorts9215
@indian-shorts9215 Жыл бұрын
kaahan se uthaya ye
@hiphop861
@hiphop861 11 ай бұрын
Thank you so much it is wonderful information
@RahulKumar-ed9vw
@RahulKumar-ed9vw 9 ай бұрын
Thanks for information.👍👍
@sameer07x19
@sameer07x19 4 ай бұрын
This explanation is neat 👍
@anitaverma-p7i
@anitaverma-p7i 8 ай бұрын
if consider null=0,then why is console.log(null==0)//false
@SmoofyAESTHETE
@SmoofyAESTHETE 5 ай бұрын
The equality (==) operator checks whether its two operands are equal, returning a Boolean result. Unlike the strict equality operator, it attempts to convert and compare operands that are of different types.
@BABABENNETT
@BABABENNETT 8 ай бұрын
hitesh sir op
@Knight004
@Knight004 8 ай бұрын
CRAZY🔥
@void-9
@void-9 9 ай бұрын
awseome!
@Sanju_baba21
@Sanju_baba21 9 ай бұрын
sir you are great ho ❤❤
@SatyaGupta.
@SatyaGupta. 9 ай бұрын
Good morning guru ji ab AA gye phir se🎉
@anuraggupta1008
@anuraggupta1008 9 ай бұрын
dataType Comparison
@Pubgmobile70545
@Pubgmobile70545 9 ай бұрын
best javascript course exact point on point teaching without overexplanation , great sir I loved your way of teaching Thanks for such a valuable course
@RahulSharma-wz6yv
@RahulSharma-wz6yv 9 ай бұрын
thanks for the amazing javascript videos
@chaiaurcode
@chaiaurcode 9 ай бұрын
Glad you like them!😊☕️
@RahulSharma-wz6yv
@RahulSharma-wz6yv 9 ай бұрын
sir me apke saare videos pe comment karta hu, so that your channel and videos get more reach to the needy, Ab ap itna premium content de rahe hai jo pese de kr milna bhi thoda mushkil hota hai, toh apke liye itna toh sabhi ko krna hi chahiye. Thank you for replying me , I am very happy to see you reply@@chaiaurcode
@meet_rakholiya
@meet_rakholiya 9 ай бұрын
Best javascript course I have ever learn
@oqant0424
@oqant0424 10 ай бұрын
8/51 done [1.1.24] ✅✅
@framedream0
@framedream0 10 ай бұрын
what is typescript in easy language?and pls give me a daily life example !!!?
@meetchanchad129
@meetchanchad129 10 ай бұрын
👍🏻
@harshkankariya4423
@harshkankariya4423 10 ай бұрын
#ChaiAurCode
@TheSilentObserver30
@TheSilentObserver30 10 ай бұрын
❤♥
@Sachin-yt5bo
@Sachin-yt5bo 11 ай бұрын
4:19 if null is converted to a number assuming zero then y nul==0 is false
@MuhammadMatloobAhmed
@MuhammadMatloobAhmed 4 ай бұрын
Yeah exactly , i'm finding such guy who notice this
@lizzimcguire4554
@lizzimcguire4554 Ай бұрын
The reason is that an equality check == and comparisons > < >= = 0 is true and (1) null > 0 is false. On the other hand, the equality check == for undefined and null is defined such that, without any conversions, they equal each other and don’t equal anything else. That’s why (2) null == 0 is false. null is treated in a special way by the Equals Operator (==). In a brief, it only coerces to undefined: null == null; // true null == undefined; // true Value such as false, '', '0', and [] are subject to numeric type coercion, all of them coerce to zero.
@HarshitKumar-bv2nr
@HarshitKumar-bv2nr 11 ай бұрын
Thankyou 😃
@Nitu-zs7vq
@Nitu-zs7vq 11 ай бұрын
Best javascript course
@yogeshkumarpatil591
@yogeshkumarpatil591 11 ай бұрын
Thank you for making such a beautiful javascript tutorial. Because You teach the actual javascript which is necessary for actual production development need. Very Very thank you. I will share your channel as much as possible to everyone. I really like your teaching style and I aslo need that type of javascript teacher. God bless you.
@thepast5488
@thepast5488 11 ай бұрын
❤❤
@radhakantpanda363
@radhakantpanda363 11 ай бұрын
DONE WITH COMPARISIONS
@abhishekb303
@abhishekb303 11 ай бұрын
console.log(3 == "3"); sir mera isme bhi answer true aa raha hai lakin equality check me to number me convert nahi hona chahiye please iska reason samjado muje. thankyou
@Instrumentation010
@Instrumentation010 11 ай бұрын
No words for this extra ordinary explanation.
@pranjalgogoigaming-1209
@pranjalgogoigaming-1209 Жыл бұрын
I never tried these things, Feeling awesome after learn these comparison....
@KalapeeGajjar
@KalapeeGajjar Жыл бұрын
I love to Chai or Code JavaScript to All Video
@ayushrana3951
@ayushrana3951 Жыл бұрын
Day 6 completed ✅
@onlysparsh
@onlysparsh Жыл бұрын
Apne bht jagah comparison ko conversion bol diya sir bht confusion ho gya .. hahaha.. but still the best explaination
@NiteshChaudhary07.
@NiteshChaudhary07. Жыл бұрын
Hello Hitesh
@tech_channel110
@tech_channel110 Жыл бұрын
real king sir hitesh, teaching kay asal meaning ko pura krty hvay
@sachin0xblock
@sachin0xblock Жыл бұрын
"Hey Chai or Code and Hitesh Choudhary, I'm on the edge of my seat in anticipation for the backend full series and DSA series on this channel! ☕💻 Your content is like the perfect blend of coding wisdom and the soothing essence of chai, and I can't wait to dive deep into these topics with your expert guidance. Keep brewing up those fantastic tutorials, and I'll keep sipping and coding along! 🚀🔥"
@RRR.iphone
@RRR.iphone Жыл бұрын
u are gennius
@Jdk281
@Jdk281 Жыл бұрын
Outstanding series I ever came across... Learning is not hard but use simple banane wala hona chaiye..❤.
@arahamabeddin7442
@arahamabeddin7442 Жыл бұрын
Done sir❤
@AMITSHARMA-in2vi
@AMITSHARMA-in2vi Жыл бұрын
null is == 0 must be correct by that concept then but it is false
@samadsiddiqui5925
@samadsiddiqui5925 Жыл бұрын
/*-----Comapring String and Number-------*/ console.log("2" > 5); //Output: false (Here, the string value is getting change into number and then it is getting compared with the given no. 5) /*-----Comapring String and Boolean-------*/ console.log("0" >= false); //Output: false (Here, the string value is getting change into number and then it is getting compared with the given boolean value false) /*-----Comapring Null and Number-------*/ console.log(null > 0); //Output: false (Here, > sign is changing the Null value into number i.e. 0 and 0 > 0 will give false) console.log(null == 0); //Output: false (Here, == can't change the Null because {>,=,= 0); //Output: true (Here, >= made the Null change into 0 and then 0 >= 0 so yeah that's true) /*-----Comapring Undefined and Number-------*/ console.log(undefined > 0); //Output: false console.log(undefined == 0); //Output: false console.log(undefined >= 0); //Output: false //All three outputs were false because undefined can't change into number in these situations.
@samadsiddiqui5925
@samadsiddiqui5925 Жыл бұрын
Loving your content!
@aryanmehta7848
@aryanmehta7848 Жыл бұрын
I got question in interview console.log([] === []) it gives output false I can't understand the logic behind it.
@th3graduate292
@th3graduate292 Жыл бұрын
@reflectcoder
@reflectcoder Жыл бұрын
Aapki investigation bahot deep mai ja Rahi hai.. Easy Ko hard kr rahe ho app 😢
@chaiaurcode
@chaiaurcode Жыл бұрын
Abhi depth me nhi jaoge to kb hi jaoge
@DhariSingh-w6v
@DhariSingh-w6v Жыл бұрын
#8 tutorial thanks for this tutorial 🙂
@Mga-quotes
@Mga-quotes Жыл бұрын
😍😍
@MAli-o4r1j
@MAli-o4r1j Жыл бұрын
Great job Sir Love from pak
@DoonSafari
@DoonSafari Жыл бұрын
Please clear this console.log(null == 0); why false as you explaining null is converted into 0 why false then
@ByteNinjas69
@ByteNinjas69 Жыл бұрын
console.log("You are best teacher")
@ManahilHasan-w7u
@ManahilHasan-w7u Жыл бұрын
JavaScript me "new" keyword kis lye use huta ha?? and tostring() kab use krna chahye kindly reply jo b read kry
@ismailyykhalid
@ismailyykhalid Жыл бұрын
Awsome !!
@Jai-xq5hi
@Jai-xq5hi Жыл бұрын
I always got confused about javascript comparison results but I am now clear about the comparison and equality operators. Thank you for this type of valuable course.
@getit3505
@getit3505 Жыл бұрын
@KinoNoTabi-gj6tm
@KinoNoTabi-gj6tm Жыл бұрын
BURGIR 🍔👍
@ShahidIjaz-t3o
@ShahidIjaz-t3o Жыл бұрын
as u said, in comparison operator made null as 0 in 2nd console null==0 means 0==0 why is false?
@lizzimcguire4554
@lizzimcguire4554 Ай бұрын
The reason is that an equality check == and comparisons > < >= = 0 is true and (1) null > 0 is false. On the other hand, the equality check == for undefined and null is defined such that, without any conversions, they equal each other and don’t equal anything else. That’s why (2) null == 0 is false. null is treated in a special way by the Equals Operator (==). In a brief, it only coerces to undefined: null == null; // true null == undefined; // true Value such as false, '', '0', and [] are subject to numeric type coercion, all of them coerce to zero.
@viraljain9197
@viraljain9197 3 ай бұрын
Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠
@programmingholic
@programmingholic Жыл бұрын
Thanks for sharing sir, Easy to understand, great explanation, following.
@yawarabbas3363
@yawarabbas3363 3 ай бұрын
A very detailed playlist enjoyed alot within investigation study
@MemonALi
@MemonALi Жыл бұрын
Such an amazing course sir.! lots of love from Pakistan💕
@ayush.tiwarios2105
@ayush.tiwarios2105 4 ай бұрын
00:02 Comparison of datatypes in JavaScript 01:10 Comparing data types in JavaScript 02:19 When comparing values in JavaScript, make sure their data types are the same. 03:27 The comparison and equality operators in JavaScript have different behaviors. 04:36 JavaScript converts null to zero during comparison. 05:44 Comparison and equality checks in JavaScript 06:53 JavaScript datatype comparison with double and triple equal 07:50 Avoid confusing conversions and comparisons in JavaScript
@chandanprajapati9704
@chandanprajapati9704 Жыл бұрын
Best JavaScript course, Thank you sir ;)
@RagSingh-e2e
@RagSingh-e2e 8 ай бұрын
best Series ALL OVER UNIVERSE, thank you Sir 🙏
@AnwarHussain-hr8lm
@AnwarHussain-hr8lm 3 ай бұрын
Bro this is Really paid leave course I have already watched JavaScript tutorial on a other channel. But I made to much mistakes in JavaScript. After watching your course I can understand JavaScript easy. Your Way of Teaching is Amazing. You teach Everything perfectly. Thanks for your effort Big fan from Pakistan ❤❤❤❤❤❤❤
@techindepth371
@techindepth371 5 ай бұрын
Best JavaScript Course till date. Amazing course. Cont day2
@BitFire007
@BitFire007 8 ай бұрын
"I owe my JavaScript skills to Chai aur Code. Brilliant content and exceptional guidance!"
@rimonhossen2504
@rimonhossen2504 Жыл бұрын
Best course I have seen on KZbin. Thanks! Hitesh sir
@adityajain5336
@adityajain5336 Жыл бұрын
best javascript course content sir jiiiii !!!!!!
@Prernachaturvedi8720
@Prernachaturvedi8720 5 ай бұрын
Best channel for js ..I share ur channel with all my friends
@hackwithakshay
@hackwithakshay Жыл бұрын
Love your voice 😍 sir ji apki voice ka koi comparison nhi 😂🤘
@pulkitsharma2478
@pulkitsharma2478 Жыл бұрын
गुरु वो होता हैं जो विद्या का दान देता हैं , विद्या का व्यापार नहीं करता |❤❤
@chaiaurcode
@chaiaurcode Жыл бұрын
guruji ko b to pet me bhojan chahiye
@pulkitsharma2478
@pulkitsharma2478 Жыл бұрын
@@chaiaurcode sir aap Jo effort de rahe hain wo hi kaafi hai iss quote ko justify karne ke liye. Bhagwan apko khoob tarakki de 🙏 🙏
@amandixit8342
@amandixit8342 Жыл бұрын
Sir mein toh apka hi course dekhna cha rha for the web dev .....best hai ,asan toh ap kar hi dete hai aur hindi mein aa gye hai toh sone pe suhaaga 🙂
@bhaskarmoger1160
@bhaskarmoger1160 2 ай бұрын
console.log(null == 0) //false because in loose equality( == ) null is the only datatype that loosely equal to undefined. So, undefined == 0 that is false
@MuhammadMatloobAhmed
@MuhammadMatloobAhmed 4 ай бұрын
Sir g 4:18 mins pr jo note aap ney diya wo practically different hai jo aap kr k bta rhay, It's confusing please help
@M.K.........
@M.K......... Жыл бұрын
I love your calmness
@RohitChhabirajYadav
@RohitChhabirajYadav Жыл бұрын
One of the best Best course of js in the world
@yash2275
@yash2275 5 ай бұрын
I am currently studying from this playlist . Do i need to study from those two one shot or this playlist has same content . By the way you are awesome sir ji
@dhruvjagannath7666
@dhruvjagannath7666 Жыл бұрын
New video kab ayga?...(JavaScript)
@RajivRanjan-w6b
@RajivRanjan-w6b Жыл бұрын
(null == 0 ) --> here null is not converted , but in ( '2' ==2) --> converted and check , u said in equality check it is not converted but in '2' it is getting converted.
@himanisain7738
@himanisain7738 4 ай бұрын
nice and helpful tutorial.
@JitendraNathChandra
@JitendraNathChandra 5 ай бұрын
But Sir the comparison between "2" and "j" console.log("2">"j") is false because of 2 unicode 50 and j unicode is 106 , since 2 comes before j that's why "2" is not greater than "j" right?
@Abhisheksingh-nt8fv
@Abhisheksingh-nt8fv Ай бұрын
sir please typescript ka bhi tutorial hindi me in depth upload kijiye please
@ankushladani496
@ankushladani496 Жыл бұрын
If null is treated as 0 then 2nd should also be give true. Why it's not?
@TradingTales
@TradingTales 8 ай бұрын
Same doubt
@NaveenM-qz8dt
@NaveenM-qz8dt 4 ай бұрын
Because equality check doesn't convert null into 0 only comparision operators do
@muhammadumair72114
@muhammadumair72114 3 ай бұрын
please explain how console.log(null == 0) is false??? (*you said JS treats null as 0) where as console.log(null >= o) is true???
@vimalradadiya5929
@vimalradadiya5929 Жыл бұрын
Khub khub abhaar apka for this video
@kartikrajput2131
@kartikrajput2131 Жыл бұрын
hitesh is back with double energy!! now 3 videoes per day thank you in advance
@yashvlogsindore
@yashvlogsindore 3 ай бұрын
sir , 1. console.log(null > 0); 2. console.log(null == 0); 3. console.log(null >= 0 ); apne bola ki 3 wale log me null ki value apne app 0 conclude kr leta hai to baki 1,2 , log me kyu nhi krta hai ??????
@rajansharma9066
@rajansharma9066 8 ай бұрын
Sir, could you please recommend a source where I can practice for JavaScript interviews?"
@mahendra_radheofficial5337
@mahendra_radheofficial5337 6 ай бұрын
sir postfix or prefix ka ye smjh nahi aaya let y ,x =5, a = 4, b = 6 y = --x + a ++ + ++ b console.log(y) ye wala smjh nahi aaya console.log(x) console.log(a) console.log(b)
@akshitagarg5914
@akshitagarg5914 Жыл бұрын
Why is null == 0 is false if null is converted to 0
@abdulmatania8155
@abdulmatania8155 Жыл бұрын
Only comparisons convert null to 0, not equality operator.
@ShubhamPanchal-zv7bp
@ShubhamPanchal-zv7bp 11 ай бұрын
accha tu bada janta he@@abdulmatania8155
@muhammadhassan48
@muhammadhassan48 11 ай бұрын
The answer to that is rather simple: a NULL means that there is no value, we're looking at a blank/empty cell, and 0 means the value itself is 0.
@JRehmanRehman
@JRehmanRehman 6 ай бұрын
Sir phir yaha (2) me null == 0 iska result false q aaya hai jub null convert hojata hai 0 me🤔
@1amAjay
@1amAjay Ай бұрын
How sir doing copy console.log in next line, koi btaega 5:34
@aiza671
@aiza671 Ай бұрын
ctrl+ shift+ down arrow
@aniketkadam9830
@aniketkadam9830 3 ай бұрын
If null is converted to zero, why does null == 0 return false?
@navnisingh5512
@navnisingh5512 2 ай бұрын
Bcz only comparisons let the js convert the data types... Not equality checks ( they treat null as null ,not 0)
@yogendraprabhakar6834
@yogendraprabhakar6834 Жыл бұрын
Waited long for this 😅
@jrahul42
@jrahul42 3 ай бұрын
great work
@mahimasingh7524
@mahimasingh7524 27 күн бұрын
You are great sir ❤
@sameer23377
@sameer23377 2 ай бұрын
Thanks for the video Sir ❤
@unknowngamer5106
@unknowngamer5106 Жыл бұрын
certificate necessary to get a job ?
@bhuvnesh4752
@bhuvnesh4752 7 ай бұрын
Aaj sikha undefined and null with comparators
@mrityunjayvyas1306
@mrityunjayvyas1306 Жыл бұрын
Sir kya Hindi mai react js ki play list bhi aae gi kya
Data types of javascript summary | chai aur #javascript
18:02
Chai aur Code
Рет қаралды 212 М.
Strings in Javascript | chai aur #javascript
22:44
Chai aur Code
Рет қаралды 241 М.
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 35 МЛН
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 15 МЛН
Trapped by the Machine, Saved by Kind Strangers! #shorts
00:21
Fabiosa Best Lifehacks
Рет қаралды 39 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 8 МЛН
ZIG | Ep1 | Introduction
20:18
Code Guild
Рет қаралды 10 М.
No-Nonsense Backend Engineering Roadmap
10:16
Codebagel
Рет қаралды 242 М.
What is Kubernetes? | Kubernetes Explained
48:22
Piyush Garg
Рет қаралды 51 М.
Array in Javascript | chai aur #javascript
18:55
Chai aur Code
Рет қаралды 244 М.
Datatype conversion confusion | chai aur #javascript
12:51
Chai aur Code
Рет қаралды 267 М.
map, filter & reduce 🙏 Namaste JavaScript Ep. 19 🔥
37:42
Akshay Saini
Рет қаралды 926 М.
Stack and Heap memory in javascript
9:55
Chai aur Code
Рет қаралды 228 М.
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 35 МЛН