Short intro about string functions in JavaScript

added by JavaScript Kicks
11/4/2019 9:15:46 AM

159 Views

Learn about available JavaScript string functions. String Properties 1.length var str = "Jagathish";str.length; //9 --> returns the length of the string Functions toUpperCase() --> returns the new string in uppercase format of source string var str = "Jagathish"; var str2 = str.toUpperCase(); console.log(str);//Jagathish console.log(str2);//JAGATHISH 2.


0 comments