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.
Sir me ny RUclips 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...❤
best javascript course exact point on point teaching without overexplanation , great sir I loved your way of teaching Thanks for such a 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
"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! 🚀🔥"
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
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.
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 ❤❤❤❤❤❤❤
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
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
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
(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.
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?
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 ??????
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.
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.
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)
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
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.
संगणक की भाषा में अच्छी पकड़ और समझाने के तरीके से हम बहुत खुश हुए और हमें बहुत मजा आया
Sir me ny RUclips 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...❤
Best javascript course I have ever learn from . Very nice and undoubtful explanation 👌👍
best javascript course exact point on point teaching without overexplanation , great sir I loved your way of teaching Thanks for such a 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.
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
Outstanding series I ever came across... Learning is not hard but use simple banane wala hona chaiye..❤.
"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! 🚀🔥"
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
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.
Such an amazing course sir.!
lots of love from Pakistan💕
A very detailed playlist enjoyed alot within investigation study
Best JavaScript course, Thank you sir ;)
real king sir hitesh,
teaching kay asal meaning ko pura krty hvay
Great job Sir
Love from pak
Best channel for js ..I share ur channel with all my friends
Thanks for sharing sir, Easy to understand, great explanation, following.
No words for this extra ordinary explanation.
Thank you to Hitesh Sir for making such an awesome video! 🙌🎥 Brushing up on my JS knowledge 🧠
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 ❤❤❤❤❤❤❤
Best course I have seen on RUclips. Thanks! Hitesh sir
I never tried these things, Feeling awesome after learn these comparison....
best Series ALL OVER UNIVERSE, thank you Sir 🙏
best javascript course content sir jiiiii !!!!!!
Best JavaScript Course till date. Amazing course. Cont day2
I love your calmness
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!"
Best javascript course I have ever learn
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
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 🙂
Loving your content!
Apne bht jagah comparison ko conversion bol diya sir bht confusion ho gya .. hahaha.. but still the best explaination
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
One of the best Best course of js in the world
#8 tutorial thanks for this tutorial 🙂
Great explnation ❤
nice and helpful tutorial.
Waited long for this 😅
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
You are great sir ❤
गुरु वो होता हैं जो विद्या का दान देता हैं ,
विद्या का व्यापार नहीं करता |❤❤
guruji ko b to pet me bhojan chahiye
@@chaiaurcode sir aap Jo effort de rahe hain wo hi kaafi hai iss quote ko justify karne ke liye. Bhagwan apko khoob tarakki de 🙏 🙏
Thanks for the video Sir ❤
Dhanyawad guruji...🙏
Good morning guru ji ab AA gye phir se🎉
Khub khub abhaar apka for this video
sir please typescript ka bhi tutorial hindi me in depth upload kijiye please
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
what is typescript in easy language?and pls give me a daily life example !!!?
(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.
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?
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 ??????
New video kab ayga?...(JavaScript)
as u said, in comparison operator made null as 0 in 2nd console null==0 means 0==0 why is false?
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.
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
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.
JavaScript me "new" keyword kis lye use huta ha?? and tostring() kab use krna chahye
kindly reply jo b read kry
Master class🙏🙏
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
Great
Great Content!!!
Please clear this console.log(null == 0);
why false as you explaining null is converted into 0 why false then
great work
Awesome video...
please explain how console.log(null == 0) is false??? (*you said JS treats null as 0)
where as console.log(null >= o) is true???
Thank you Sir
I love to Chai or Code JavaScript to All Video
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.
Sir phir yaha (2) me null == 0 iska result false q aaya hai jub null convert hojata hai 0 me🤔
👍🏻
Awesome
Sir, could you please recommend a source where I can practice for JavaScript interviews?"
thank you sir
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)
😍😍
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
expectional video!!!!! ⚡
How sir doing copy console.log in next line, koi btaega 5:34
ctrl+ shift+ down arrow
hitesh is back with double energy!!
now 3 videoes per day
thank you in advance
certificate necessary to get a job ?
❤
😊
Thankyou 😃
❤❤
Best javascript course
I got question in interview console.log([] === []) it gives output false I can't understand the logic behind it.
Aaj sikha undefined and null with comparators
sir you are great ho ❤❤
Thank you so much sir ji😊😊
Sir aagla video kb aayega🤔
Sir kya Hindi mai react js ki play list bhi aae gi kya
best coding
❤♥
06:48 SIR you type "2" === 2 so its output is true but if we type 2 === "2" then its false
console.log("2" === 2); and console.log(2 === "2") dono hi case me false aaye ga !! kyunki === conversion kerny hi nhi dega :)
Nice
If null is converted to zero, why does null == 0 return false?
Bcz only comparisons let the js convert the data types...
Not equality checks ( they treat null as null ,not 0)
CSS ke videos kab ayega sir?...
wow very nice video sir
Great