Why can't you stringify a function expression?

后端 未结 5 1466
醉话见心
醉话见心 2020-12-30 01:06

Why doesn\'t this produce anything?

console.log(JSON.stringify(function(){console.log(\'foobar\');}));
5条回答
提交回复
热议问题