Embrace Pet Insurance interview question

JavaScript Question using code sample (to best of my memory): <code>var myObject = { a : "54", toString: function(){ return a; } }; console.log("value = " + myObject); </code> What is logged in the console? (no answer listed included myObject in JSON notation).

Interview Answer

Anonymous

Nov 10, 2015

Why would you?