logo
Search
showing results for - "js null vs undefine"
Candis
01 May 2017
1var TestVar = null;
2alert(TestVar); //shows null
3alert(typeof TestVar); //shows object
4
source
Sasha
01 May 2019
1var TestVar;
2alert(TestVar); //shows undefined
3alert(typeof TestVar); //shows undefined
4
source
similar questions
javascript if null use other valueis null falsy javascriptjavascript null vs undefinedjs is undefined or nullnull 2b undefinedjs not equal to nulljavascript null true or falsejavascript not nullnull vs undefinedjavascript error nulljavascript check for null variablesjavascript check undefined or nulljavascript null or emptynull check in javascriptjavascript check if undefined or nulljavascript is not nullinline null check javascriptjavascript syntax for check null or undefined or emptyjavascript is null
queries leading to this page
null vs undefine in javascriptjavascript null vs undefined vsdifference between undefine and null in jsjavascript null vs undefinedis null and undefined same in javascriptjs null vs undefinenull vs undefiend jsnull vs undefind in jsdifference between null and undefine in jsjs null vs undefine
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue