195
rated 0 times
[
199]
[
4]
/ answers: 1 / hits: 55365
/ 12 Years ago, thu, november 15, 2012, 12:00:00
I have this code:
var sideBar = localStorage.getItem('Sidebar');
I want to check if sideBar is defined and not null in an if statement. I am a bit confused I know there's a: sideBar == undefined
and sideBar != null
but is there a good way for me to do this test for both of these inside an if:
if (??)
More From » javascript