Answers for "can we capital in javascript"

49

uppercase string in js

var str = "Hello World!";
var res = str.toUpperCase();  //HELLO WORLD!
Posted by: Guest on July-30-2020
0

js capitalize word

const capitalizeFirstLetter(string) => 
	string.charAt(0).toUpperCase() + string.slice(1).toLowerCase()
Posted by: Guest on December-27-2020

Code answers related to "can we capital in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language