13 JS Variable is null - JavaScript Tutorial 2018

Veröffentlicht am: 17 Juni 2017
auf dem Kanal: Ricky Wahowa
168
1

Full #Javascript #tutorial for #beginners :

http://bizanosa.com/js

Learn HTML, CSS and JavaScript

http://bizanosa.com/sp/learn-html-css...

JavaScript Tutorial 2018



13 JS Variable is null - JavaScript for Beginners.

This is a Javascript tutorial from scratch for any beginner. Use the above link to watch the full JS video tutorial..

Next Video:    • 14 Javascript Variable scoping - JavaScrip...  
Previous Video:    • 12 Undefined and referenceError   - JavaSc...  



Hey, and welcome back.

What does it mean if a variable has a value of NULL.

Well in JavaScript, NULL is treated just like zero.

So if I was doing some kind of, or some kind of arithmetic, and I was using NULL, it would behave just as zero.

So let's see this and we leave it here in Scratchpad.

So if I come here, let me delete all of this.

So let's say ‘var’, ‘var’ let’s call variable var tax=null; and then ‘alert’, let’s do some kind of arithmetic.

So let’s say null times, times 10,000 and then we run this, you see it’s equal to zero, because it's treated as zero.

So we can also say ‘null+10,000’, if we run this, it's 10,000.

So null is treated as zero.

Let's continue in the next video.

And in the next video, we’ll start looking at variable hoisting.

See you then.





GET SOCIAL WITH ME:
FACEBOOK:   / rwahowa  
INSTAGRAM:   / rwahowa  
TWITTER:   / rwahowa  
VIMEO: https://vimeo.com/bizanosa/
WEBSITE : http://rwahowa.com


Auf dieser Seite können Sie das Online-Video 13 JS Variable is null - JavaScript Tutorial 2018 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Ricky Wahowa 17 Juni 2017 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 168 Mal angesehen und es wurde von 1 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!