+ 1
Why it output as 1 instead of 3
var a; var object={ a:1, b:function() {var a:3} } object.b(); shows results as 1 but not 3 why?
1 ответ
+ 5
'b' should be "function(){object.a = 3}"
var a; var object={ a:1, b:function() {var a:3} } object.b(); shows results as 1 but not 3 why?