Weird question regarding cookies in jQuery. I have the following:
console.log("ShowMoveItems() : " + $.cookie('selectedmoveitems'));
console.log("ShowMoveItems() ISNULL : " + $.cookie('selectedmoveitems') === null);
with the following output in Firefox's console:
"ShowMoveItems() : null"
false
For interest's sake, I have also tried == null
and it has the same result as ===null
. Why is this the case when "ShowMoveItems() : " + $.cookie('selectedmoveitems')
shows the cookie as null?
UPDATE afer comment from @RohanKumar:
console.log("ShowMoveItems() : ")
console.log($.cookie('selectedmoveitems'));
console.log("ShowMoveItems() ISNULL : ");
console.log($.cookie('selectedmoveitems') === null);
"ShowMoveItems() : "
null
"ShowMoveItems() ISNULL : "
true