返回在VSC中不与Node一起工作,但console.log可以,为什么?[关闭]

h22fl7wq  于 2023-06-05  发布在  Node.js
关注(0)|答案(1)|浏览(149)

**关闭。**此题需要debugging details。目前不接受答复。

编辑问题以包括desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem。这将帮助其他人回答这个问题。
4天前关闭。
Improve this question
Here is my vsc it will console.log but I can't get the return to work. Node is up to date. not sure why this works in the browser and not VSC. Thanks
我期望代码在第一个edgecase停止并返回false。

cmssoen2

cmssoen21#

VSC不会自动记录脚本中调用的函数的输出,只需将函数调用 Package 在console.log中即可。

console.log(same(arr1, arr2))

相关问题