Does Javascript converts numbers and other data types to strings to print it in console?

前端 未结 0 707
死守一世寂寞
死守一世寂寞 2021-01-26 12:48

So I was reading a book on JS , and it says if you write

```var x = 20;
   console.log(x);```

Then Javascript will first convert x to string impl

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