106
rated 0 times
[
111]
[
5]
/ answers: 1 / hits: 41351
/ 11 Years ago, wed, march 20, 2013, 12:00:00
I know a lot of ways to create JS objects but I didn't know the Object.create(null)
's one.
Question:
is it exactly the same as:
var p = {}
vs
var p2 = Object.create(null);
?
More From » javascript