uppercase in word javascript
var str = "Hello World!";
var res = str.toUpperCase(); //HELLO WORLD!function toTitleCase(str) {
return str.replace(/\w\S*/g, function(txt){
return txt.charAt(0).toUpperCase() + txt.substr(1).toLowerCase();
});
}
Also in JavaScript:
- foreach object javascript
- react propthpes or
- javascript canvas gamma correction
- javascript closure inside loop
- open google map with latitude and longitude javascript
- node list files in directory
- regular expression to validate m/d/yyyy HH:MM:SS AM
- how to convert whole strig in lowercase in js
- regular expression not to allow space in javascript
- javascript array push method
- javascript submit form with tab key
- MVC view pass model to javascript function
- how to end if statement roblox
- angular material spinner with logo
- array.filter in javascript
- jquery autocomplete database
- angular current year
- javascript unicode to string
- js api call
- declare multiple variables javascript
- checkbox on click jquery
- qr code generator with javascript
- chess.js
- for in loops javascript