JavaScript Tutorial For Beginners - NaN (Not a Number)

preview_player
Показать описание
Hey all, I thought it about time I introduced you all to NaN ;). So in this JavaScript tutorial for beginners I'll be showing you what NaN is (Not a Number) and how we can use it to check whether certain variables are indeed a number or not.

As usual, ask away with any questions you have :).

========== JavaScript for Beginners Playlist ==========

========== CSS for Beginners Playlist ==========

========== HTML for Beginners Playlist ==========

========== The Net Ninja ============

========== Social Links ==========

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

funny, this about not a number and this part is one of the only video's without a number in the title

timrots
Автор

Really liked the "ain't" to "int" pun there, keep the lessons amusing and interesting :)

dhimansanchit
Автор

> typeof(NaN)==="number"
< true
> NaN===NaN
< false
Gotta love JavaScript. :-)
Many Thanks for sharing your knowledge. Very nice tuts.

samdavepollard
Автор

NaN, NaBV, AGV not a number, not a bad video, a good video.

dwayne
Автор

A reference to Douglas Adams! Chapeau! :))
and btw: great tutorials!!!
greetz from germany

fleckenfurz
Автор

amazing tutorials for mere mortals. thanks ninja

kennethlim
Автор

i don't speak fluently english, but i'm surprised i got it with the accent. good explanation, ty :)

Iashormiguitas
Автор

I love the hitchhikers guide to the galaxy reference :)

AllenZitting
Автор

Great tutorials, though my ears are bleeding. I thinks I can handle few more dozens of HEEEYAAA before going full deaf! 10/10 would watch again!

igorrudkovskiy
Автор

I enhance my vocabulary through these videos )) . Is 'thickie' a slang for solid waste matter - aka shit ? Or this one has a different meaning?

artihlec
Автор

var a = "apple";
var b = 5;

console.log(a * b +"i");


NaNi

emrecimen
Автор

No hablo, ingles pero te entendí a la perfección, min 4:28 taran

samuelescateallaucca
Автор

love your videos, your explanation is the best

mohammadjunaid
Автор

Thanks, thanks, your video help me a lot!

dianacolon
Автор

compare to Python where '7' + 5 gives error and '7' * 3 gives '777'... type coercion in JS is nightmare!

vxsniffer
Автор

Great tutorial man. Quick question, Why do we need to use isNaN()? Why can't we just check if the variable is an int?

incanus
Автор

I found it interesting, that when a="5", the isNaN function returns false, which means it's a number, but typeof(a) tells that it's a string. Funny little detail.

NeverDieAgl
Автор

If I got this write from previus lection... U need to check if a is 0 or -0 because in that case U got NaN too?
And I think that easier way to explane "!isNaN(a)" is (if i got it write) if this "isNaN(a)" is not correct do something, else (if that is true) do this? Did I got it write?

aleksandarstojadinovic
Автор

ey, what website would you recomend for js reference?

pixelgabriel
Автор

Should of kept it "that int a number thickie" int = number haha

VinhLe-gcws