How to use toLocaleUpperCase() to convert a string to upper case, according to locale-specific case in JavaScript

1 Answer

0 votes
// str.toLocaleUpperCase()

var s = "abc";

document.write(s.toLocaleUpperCase() + "<br />");
document.write('xyZ'.toLocaleUpperCase() + "<br />");


/*
run:

ABC
XYZ

*/

 



answered Aug 11, 2016 by avibootz
...