fe-interview icon indicating copy to clipboard operation
fe-interview copied to clipboard

'1'.toString()为什么可以调用?

Open habc0807 opened this issue 4 years ago • 2 comments

habc0807 avatar Sep 01 '20 07:09 habc0807

语句在执行的时候,经历了三个过程:

var str = new String('1');
str.toString();
str = null;

habc0807 avatar Sep 01 '20 09:09 habc0807

看到了另一种解释,哪个才是对的呀?https://juejin.cn/post/6844903974378668039 image

kongkongqlg avatar Apr 24 '23 05:04 kongkongqlg