How to handle a not defined value in java script
if (oldins == ins)
oldins is not defined How i check???????
How to handle a not defined value in java script
if (oldins == ins)
oldins is not defined How i check???????
Unset variables would evaluate to a value of 'undefined'. 'undefined' is a value type like null and NaN so it would be:
if ( typeof(oldins) == 'undefined' )
Edit: Fixed per comments. Leaving the answer since the comments are helpful, but there were more correct answers.