JavaScript Tutorial For Beginners #9 - Math Operator Short-hand

preview_player
Показать описание
Hey guys. In this JavaScript tutorial I want to build on what we've already learnt about mathematical operators, and show you a few cool short-hand notation versions that will save you time.

+= is the short-hand for adding to the current variable

-= is the short-hand for subtracting from the current variable

*= is the short-hand for multiplying by the current variable

/= is the short-hand for dividing the current variable

++var or var++ are the incremental operators (increase the value of the variable by 1).

--var or var-- are the decremental operators (decrease the value of the variable by 1).

As usual, comment down below with any questions :).

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

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

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

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

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

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

I'm currently self-studying to become web developer and this is already your third playlist i watch. I have to say that you definitely explain better than other courses i watched, even one i had to pay for it. Good job:)

MrAkyroz
Автор

I have spent countless hours tryin to find decent videos that go at a good /smooth pace for beginners...I had not found one until I came across your series. Thank you so much for not making me feel supid. Also the videos are all short and right to the point so Im able to go back and re watch something if i didnt get it the first time.

johncarter
Автор

I have watched almost all of your playlists, and you are truly an amazing brain ninja. Could you also please do a PHP and MySQL playlist as well ? i would forever be gratefull, thank you once more!

saraache
Автор

you are pretty good guy Ninja thank you for tutorials they are simple to understand

salohiddinrasulov
Автор

Never knew about shorthand multiplication and division, or that I could ++ before the variable name.

guest
Автор

Good job NetNinja. Your tutorials help me a lot! :D

maanaskunchala
Автор

love you! thanks for these tutorials!

raj-hgyd
Автор

God bless you so much sir..i really appreciate your videos

akpanjerry
Автор

Hi Shaun, is there a reason you're not ending these statements with a ; - is it just to save time?

raymondpcowie
Автор

definitely the better tutorial of javascript

uahh lol

hi-iodp
Автор

When I run myVar = 10 then if try to add 5 on it, it will bring up 105 what is wrong

Adams_whales
Автор

the only video that you didn't started with a "yoooo

aurelvrenos
Автор

So is myVar++ the same as ++myVar??? are they interchangeable?

hilliparterable
Автор

One doubt. Is myVar++ and ++myVar both the same.

judisjeevan
Автор

in min 3.48 why does myVar become 26 ?? but when you call it again be 27

ekbalzayan
Автор

whats the difference between myVar += and myVar =+

AniSepherd
Автор

I can’t even see what’s your typing too bad this video looks promising

femidev