[CODE]<script> var MYAPP = {};
MYAPP.stooge = { “first-name”: “Joe”, “last-name”: “Howard” };
document.write(MYAPP.stooge.first-name);
</script>[/CODE]
Result is “NAN”. How to get the result as “Joe”?
[CODE] <script> var MYAPP = {}; MYAPP.stooge = { first_name: "Joe", last_name: "Howard" }; document.write(MYAPP.stooge.first_name); </script> [/CODE]
Help @stevengoh spread the word by sharing this article on Twitter...