Assign result of block to a variable (gives SyntaxError)

后端 未结 0 612
故里飘歌
故里飘歌 2021-01-15 16:42

If I open a Node REPL, and enter this code, I can see that it evaluates to 3:

$ node
> { let a = 1 + 2; a }
3
> 

However, this code doe

相关标签:
回答
  • 消灭零回复
提交回复
热议问题