2 ms·
And sadly, it seems the same with JS. Year 2015: x = null; typeof x; //object x.a = 1; //TypeError: x is null
by gear54rus 12y ago
And sadly, it seems the same with JS. Year 2015:
x = null;
typeof x; //object
x.a = 1; //TypeError: x is null