“JS null vs undefine” Kod odpowiedzi

JS null vs undefine

var TestVar;
alert(TestVar); //shows undefined
alert(typeof TestVar); //shows undefined
Terrible Termite

JS null vs undefine

var TestVar = null;
alert(TestVar); //shows null
alert(typeof TestVar); //shows object
Terrible Termite

Odpowiedzi podobne do “JS null vs undefine”

Pytania podobne do “JS null vs undefine”

Więcej pokrewnych odpowiedzi na “JS null vs undefine” w JavaScript

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu