localization - Is a javascript object's toString function affected by localisation? -


This can be a too silly question, but do I trust the string () function Can the client's language settings?

That is, for me:

  x = true; X.toString (); // "true"   

If a person from France runs my application, then what is the output to "true" or "vrai" Will? For boolean, an analog ECMAScript interpreter should convert true

"true" and false to "false" .

Comments