toString() in the js document is used to convert it into a string
toLocaleString() is used to convert to a local string
My code tests are all used to convert them into strings. What is the connection and difference between the two?
I can’t see any difference through the following two pieces of code
First take a look at MDN and then you can refer to both
https://developer.mozilla.org...
https://developer.mozilla.org...
The description of toLocaleString looks like this
Object's toLocaleString returns the result of calling toString(). *