<script>var a={}a.name='hahaha';a.age=20;a.say=function(){"hello"};document.write(a.say())< ;/script>/*Why does the browser output undefined when accessing the object say? Can't the function value be output directly? */
Because there is no return in your say() method
Because there is no return in your say() method