JavaScript is Weird

preview_player
Показать описание
I still love JavaScript though.

Music:

Social Media:

#javascript #js #programming
Рекомендации по теме
Комментарии
Автор

type of NaN ('Not a Number') -> number: I laughed so hard on this.

juzarbharmal
Автор

Subbed, love your style of content man

habui
Автор

What is Love? Javascript don't hurt me, don't hurt me, NaN

niksatan
Автор

what's a dev's favourite food?



ToFoo.
Where does he like to eat it?
At a ToFoo Bar

AniishAu
Автор

as a person who dont code in Js, this f my brain up so hard

rlqssuz
Автор

It's not weird, it's just beautiful, looking forward for your explanation.

venkatv
Автор

First of all, nice video! and then, there're a couple that have explanation. For instance, ['1', '3', '11'].map(parseInt), the second argument of parseInt is in which base will take to do the conversion, I think by default is base 2 so 1 => 1, of course and 11 => 3, and finally, 3 in binary system does not exist that's why NaN. Another that I dare to explain is, 3 > 2 > 1 = false, (3 > 2) true (true is equal to 1) 1 > 1 (false) so true and false, false. It's quite confusing haha but understandable. See you! have a good day.

lucas.contreras
Автор

JavaScript is weird. That is why I love it

saadmehmood
Автор

JavaScript is weird 100% true but i love it 😁😁

vickrammark
Автор

0:38
Wouldn't that one happen in most languages? For how I understand it, this statement checks if 1 is larger than 1.

Jolfgard
Автор

i would build a programming language where null + null = 1, but null * 2 = null

mr.duckie._.
Автор

alr budy 0.1+0.2 happens on any languange !

hamzacasdasdasd
Автор

what is weird on that object + x is not a number?
.1 + .2 = .3000... not just in javascript, it's in any programming language that stores floating point number as 1.X * 2 ^ n
typeof NaN (not a number) being a number might seem strange, but it's just part of the object, which other object should it be under?
3 > 2 > 1 also not weird, works like this: 3 > 2 returns true, that is equal to 1, 1 > 1 is false... that is weird just to bad programmers.
typeof null being object is same as NaN, null is used when something should return object, but there is nothing to be returned
999... being 100... is the same thing as .1 + .2, javascript stores everything as double hence the moment number is too large, it has to round it

the rest is the stuff I watched this for

sgmvideos
Автор

That's why Javascript was written in 10 days

Serzes_
Автор

I think NaN === NaN is false because you need to use strict types like NaN == NaN(JS is weird)

jcgamer
Автор

JavaScript is Not Weird, there is a reason behind it.

VarunJain
Автор

{} + “x” is Not a Number

r/technicallythetruth

maximsavenkov
Автор

javascript is confusing in mindustry: Groups.player.getByID().kick("reason", seconds*1000)

andreymitrichev