Avoiding JavaScript Type Conversion Issues - How Type Coercion Works
HTML-код
- Опубликовано: 14 апр 2020
- In JavaScript, like generally in programming, you work with data - with values. And these values have different types. JavaScript requires certain types for certain operations and also freely converts between types. This can lead to unexpected behaviours - so here's how JavaScript type coercion works (and what it is).
Learn all about the core "tricky parts" of JavaScript: acad.link/js-tricky
And/ Or learn JavaScript from the ground up - all the way to expert level: acad.link/js
I also have another summary video about the "tricky parts": • Making Sense of the Tr...
Check out all our other courses: academind.com/learn/our-courses
----------
• Go to www.academind.com and subscribe to our newsletter to stay updated and to get exclusive content & discounts
• Follow @maxedapps and @academind_real on Twitter
• Follow @academind_real on Instagram: / academind_real
• Join our Facebook community on / academindchannel
See you in the videos!
----------
Academind is your source for online education in the areas of web development, frontend web development, backend web development, programming, coding and data science! No matter if you are looking for a tutorial, a course, a crash course, an introduction, an online tutorial or any related video, we try our best to offer you the content you are looking for. Our topics include Angular, React, Vue, Html, CSS, JavaScript, TypeScript, Redux, Nuxt.js, RxJs, Bootstrap, Laravel, Node.js, Progressive Web Apps (PWA), Ionic, React Native, Regular Expressions (RegEx), Stencil, Power BI, Amazon Web Services (AWS), Firebase or other topics, make sure to have a look at this channel or at academind.com to find the learning resource of your choice!
Correction at 8:42: Objects are not primitve types but reference types. I'm sure it was a fluff :-) Thanks Max!
This video is just awesome about JavaScript coercion, haven't seen such a detailed and easy to learn video about this topic.
I am not impressed since this is just Max being Max
*_C/C++ programmers left the chat_*
This monstrosity won't be forgotten
Man this is the best video I've seen which clearly explains coercion.
Thank you Max for this excellent video. I gained some new insights into javascript.
As usual your videos are amazing,Thanks Max. I thought this topic is difficult but watching your video and way of your teaching is excellent.
Thanks! 😃
Hi Max! Great video! Love your courses! At 8:43 you are saying that objects are primitive types. Sorry for the correction, I know it was just a tiny confusion.
Ya this is his tong slip he cleared it at 8:50 Objects are not primitive they are reference type values store in Heap memory.
Thanks Max all you tutorials are awesome.
Very good 👍, I am looking for this video in details...
Very nice and helpful video, thanks!
Very helpful. Thanks for sharing.
It's really helpful thanks
Awesome, thank you!
12:38 - thats absolutely valid js expression
Great video Max
Great Video, now I can bully my juniors !!
Congratulations 500k 🙏😍😎
Thank YOU and so many others for making this possible :)
Please can you explain why undefined == null is true
Congratulations 🎉 500k 💓 Subscribers
Just amazing and just possible because of the awesome support we get from you and many others :)
@@academind See you on 1M💓 You Deserve It :-)
Hey bro ... Thank you for such awesome content.
But i have one doubt . Can you please help me in that
I wanted to know the reason that why { } + [ ] is not equal to [ ] + { } in javascript.
it is actually equal, try a console.log( {} + [] == [] + {}) // true
"object Object" + "" === "" + "object Object"
"object Object" + empty string(nothing) ==/= empty string(nothing) + "object Object"
i very love your tutorial
Thank you! 😊
@@academind wow, you answered me. WOW, man, i love your course about python and web dev. I watched all of these. Thank you for you job. I will to teach people web dev in my channel how you!
When can we expect your Algorithm course?
Working on it but as always we never share any release dates before the release is fix.
@@academind You can do a early release. Because, since it's a lockdown time, we have dedicated time to learn. So, if possible do a early release. Please....
best best best..max is the best
Can you make a video about vue native? I haven't really seen anyone talk about it
+1
What do you advise me
Flutter or React native
Please check this video => academind.com/learn/flutter/react-native-vs-flutter-vs-ionic-vs-nativescript-vs-pwa/
that video is mostly "it depends..." type of video, but use React native why? because whatsapp facebook instagram IMDB Quara Twitter use it and you dont look like next mark zukker berg to me
Give video on angular CDK
Give video on all operator of RXJS
Give video on highchart
When the LEGENDARY Maximilian speaks out, all pple must carefully listen! Love you my favourite tutor.
Wow, thanks!
.... and that's why typescript is hyped.
for now
Really nice job. I would like to answer you a couple of things. I created a professional website for my sister's husband with react js and the only thing that i have for back-end is the contact form which has been created with node-nodemailer. Can i host both front-end and back end somewhere and what do you suggest? Also how to make seo in react?
Next.js takes care of ssr, seo and pwa. don't build your project with create-react-app, it only takes care of front-end(static files); Same with vue, use Nuxtjs to develop projects !!!
Hello Dear sir, I am a hybrid application developer. I work at ionic framework . I want add live video streaming in my app.please make a playlist on live video streaming in ionic .
Hello max plzz make a video that why we can change objects even we declare them as const thanks in advance
Eeleven! Freedom! Scotland!
Javascript looks dumber to me by the minute...
Can someone tell me where the benefits lie in this mess? (for devs)
There are no benefits. Javascript originally wasn't designed to be a language for developers. As far as I know some of these decisions were made to make the language easier to use for non developers. Since then, Javascript has grown to be a widely used language, but sadly we are still stuck with all the design decisions that were made in the beginning.
the benefits is use correct type before using Operators asshole! computer is not your slave to do all the things for you learn to pull your weight too
and in future JavaScript will rule all the language more than it does now
so watch your tongue when you are speaking of JavaScript
why false == "false" is false
Angular or React What You Prefer Please Answer 😊
academind.com/learn/angular/angular-vs-react-vs-vue-my-thoughts/
@@academind Really love you bro Already bought your Angular and Node Courses 💓
Is it really necessary to know all that ? Isn't it better to always use === ?
Give Video on NGRX in angular with deeply understanding
I am a computer. For me, 1 + 1 == 10; 1 + 1 != 11
Upload the tricky part course in udemy
No.
@@academind WHY
There's one easy way to avoid this, use TypeScript instead.