How do I check a variable if it\'s null or undefined and what is the difference between the null and undefined?<
null
undefined
How do I check a variable if it's null or undefined
just check if a variable has a valid value like this :
if(variable)
it will return true if variable does't contain :