9 Reasons People Hate JavaScript

Published 2024-05-17
Why does everyone HATE JavaScript? We expose its flaws, quirks, and why it's still the king of the web!

✋ Stay connected

- Twitter: twitter.com/moshhamedani
- Facebook: www.facebook.com/programmingwithmosh/
- Instagram: www.instagram.com/codewithmosh.official/
- LinkedIn: www.linkedin.com/school/codewithmosh/

📖 What's covered

00:00 - Introducing JavaScript
00:14 - History of JavaScript
00:32 - Coercion
00:59 - Equality operators
01:29 - Array.sort
01:50 - Null and undefined
02:08 - The this keyword
02:23 - Classes
02:38 - Module system
03:16 - TypeScript
03:47 - Ecosystem
04:28 - Why JavaScript is the king

#javascript #programming #webdevelopment #coding

All Comments (21)
  • @lucaspham5238
    If companies or developers stopped releasing new JavaScript libraries or frameworks every nanosecond, maybe I wouldn't hate it. EDIT: I dont want to use any of them, as the tech layoff wave is spreading, overrule of AI and ridiculous demands from employers, I stop learning new non sense tech just to please my (future)employers or clients so they can pay me less while having a fullstack. I'm now focus in ReactJS/Angular/Nest and hope those skills can buy me 2-3 years more while I'm learning new skills and start over with diff job, away from tech job for good.
  • Null actually means null pointer. Values that contain objects are actually pointers to the object rather than containing the object themself, and null is pointer to nothing. Which is why typeof null is 'object'.
  • @dschledermann
    I know PHP, I know Rust, I know SQL, I know Shell-script, I even once knew C and C++, but I have never managed to get comfortable with Javascript. I don't think I ever will. It never ceases to confuse me.
  • @dormiebasne3578
    JavaScript is the chaotic language something like the internet deserves to represent it.
  • @ashmoore3709
    Thanks for your amazing content Mosh. You videos are not only very engaging and useful, but also very therapeutic and refreshing 😊
  • @JW-pu1uk
    I just started a full stack JS job w/ data analysis job duties too. Seeing this video has made my heart skip a beat.
  • @dni_
    meanwhile im 46yo,self taught and still learning JS >HTML>CSS>React with vite for the last one year, im having fun learning JS because i want to be front end dev for my freelance journey
  • @TrusePkay
    I decided to take JavaScript seriously because of Dash's clientside callbacks. And I recently got hired into a web development firm that wanted a Python developer just like me. So I decided to learn JavaScript. That undefined vs null causes a little bit of problems. Once I knew the distinction: const, let, var undefined, null object, array, map, set. I also knew JavaScript classes were fake. I was ready.
  • @umerbedewi477
    I'm deeply learning html and css right now next it's javascript, I want to be frontend developer
  • @rosariosway
    Great video Mosh, the video was great! You are the best programming professor in the world!!!
  • @AnnCatsanndra
    Honestly I kinda love the speed to prototype in JavaScript, even knowing the risk of accruing insane technical debt is a perpetual risk with how quiet the language is about the dev's mistakes. I dunno, I'd rather just take the type coersions in JS than C segmentation faults and Java verbosity.
  • @jpallatin
    JavaScript is weird, but somehow I love it so much.
  • @KamramBehzad
    I went through BASIC, C++, Pascal (later Delphi) and finally settled on C# for 2 decades. Once over lunch we were discussing JS with colleagues who used it. I said I hate it. They asked why. Not that they were surprised; they just wanted to hear my version. I said: "I feel like coding in JS compared to C# is like going to a ballroom party in your pyjamas. Not that it can't be done. It just doesn't ever feel right". For the short while I was sentenced to using JS, I remember I spent more than half a day once just chasing a bug due to null checking errors. That's criminal if you ask me. Horrible thing JS. I will not dignify it by calling it a language.
  • @AmnaCode
    Thanks for sharing.that is informative
  • @CoolTebza-eh7ig
    Matter of preference. Some when they see complications they stop learn that thing. But i think developers should be vast knowledgeable in every tool out there. But who I'm i but people choose what they like
  • @arikplanet8525
    Doing great. Here's a dare for you: Make a tutorial video of half an hour in QBasic Language.
  • @LtFoodstamp
    Is it popular or is it simply the default for front end?