/ Published in: JavaScript
Both are functionally equivalent
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var o = { r: 'some value', t: 'some other value' }; var o = new Object(); o.r = 'some value'; o.t = 'some other value';