Why does (“foo” === new String(“foo”)) evaluate to false in JavaScript?

前端 未结 5 1766
挽巷
挽巷 2020-11-29 19:31

I was going to start using === (triple equals, strict comparison) all the time when comparing string values, but now I find that

\"foo\" === new String(\"fo         


        
5条回答
提交回复
热议问题