best javascript course exact point on point teaching without overexplanation , great sir I loved your way of teaching Thanks for such a valuable course
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.
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.
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
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.
"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! 🚀🔥"
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
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
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
(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.
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
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?
best javascript course exact point on point teaching without overexplanation , great sir I loved your way of teaching Thanks for such a valuable course
Thanks 👍
seriously !!!
💯
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.
संगणक की भाषा में अच्छी पकड़ और समझाने के तरीके से हम बहुत खुश हुए और हमें बहुत मजा आया
Best javascript course I have ever learn from . Very nice and undoubtful explanation 👌👍
Outstanding series I ever came across... Learning is not hard but use simple banane wala hona chaiye..❤.
real king sir hitesh,
teaching kay asal meaning ko pura krty hvay
Best course I have seen on CZcams. Thanks! Hitesh sir
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.
kaahan se uthaya ye
Thank you so much it is wonderful information
Thanks for information.👍👍
This explanation is neat 👍
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
Thanks for sharing sir, Easy to understand, great explanation, following.
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.
No words for this extra ordinary explanation.
Best channel for js ..I share ur channel with all my friends
Such an amazing course sir.!
lots of love from Pakistan💕
Great job Sir
Love from pak
best Series ALL OVER UNIVERSE, thank you Sir 🙏
"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! 🚀🔥"
Best JavaScript course, Thank you sir ;)
I never tried these things, Feeling awesome after learn these comparison....
Loving your content!
I love your calmness
best javascript course content sir jiiiii !!!!!!
nice and helpful tutorial.
Khub khub abhaar apka for this video
#8 tutorial thanks for this tutorial 🙂
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 🙂
Best javascript course I have ever learn
Good morning guru ji ab AA gye phir se🎉
Great explnation ❤
Love your voice 😍 sir ji apki voice ka koi comparison nhi 😂🤘
"I owe my JavaScript skills to Chai aur Code. Brilliant content and exceptional guidance!"
Great Content!!!
Best JavaScript Course till date. Amazing course. Cont day2
Waited long for this 😅
expectional video!!!!! ⚡
One of the best Best course of js in the world
sir you are great ho ❤❤
hitesh is back with double energy!!
now 3 videoes per day
thank you in advance
awseome!
Apne bht jagah comparison ko conversion bol diya sir bht confusion ho gya .. hahaha.. but still the best explaination
Dhanyawad guruji...🙏
Awsome !!
thanks for the amazing javascript videos
Glad you like them!😊☕️
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
Master class🙏🙏
Thankyou 😃
CRAZY🔥
Thank you Sir
u are gennius
wow very nice video sir
as u said, in comparison operator made null as 0 in 2nd console null==0 means 0==0 why is false?
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
Nice
👍🏻
Thank you so much sir ji😊😊
❤
❤❤
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
❤♥
😍😍
best 👑
Great
Maja a raha hai padhne mein 😍
😊
hitesh sir op
your hindi is 🔥🔥
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
Thanks 👍
super sir
Done sir❤
I love to Chai or Code JavaScript to All Video
Best javascript course
certificate necessary to get a job ?
JavaScript me "new" keyword kis lye use huta ha?? and tostring() kab use krna chahye
kindly reply jo b read kry
Day 6 completed ✅
New video kab ayga?...(JavaScript)
what is typescript in easy language?and pls give me a daily life example !!!?
😄😍😍😍😍
If null is treated as 0 then 2nd should also be give true. Why it's not?
Same doubt
Because equality check doesn't convert null into 0 only comparision operators do
Sir, could you please recommend a source where I can practice for JavaScript interviews?"
(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.
Why is null == 0 is false if null is converted to 0
Only comparisons convert null to 0, not equality operator.
accha tu bada janta he@@abdulmatania8155
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.
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
Sir phir yaha (2) me null == 0 iska result false q aaya hai jub null convert hojata hai 0 me🤔
Sir kya Hindi mai react js ki play list bhi aae gi kya
I got question in interview console.log([] === []) it gives output false I can't understand the logic behind it.
DONE WITH COMPARISIONS
typeof compaire mein boolean datatype kyu dikhata hai
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?
CSS ke videos kab ayega sir?...
Sir aagla video kb aayega🤔
How I remember js code because I forget the code
4:19 if null is converted to a number assuming zero then y nul==0 is false
Yeah exactly , i'm finding such guy who notice this
Aaj sikha undefined and null with comparators
Please clear this console.log(null == 0);
why false as you explaining null is converted into 0 why false then
please share your other channel link for typescript
bhai chai kaha h aaap ki
Rom Rom ji
sir naya video kab ayega?
done
BURGIR 🍔👍