javascript make variable null

 

 

 

 

I prefer the Underscore function because its readable, but the null comparison is native JS and seems more efficient, and simpler. Try this Hope it will help youTags: javascript variable checking null undefined boolean. I am using javascript.