JavaScript program to convert the first letter of a string into uppercase:

python tutorials and learn python

Created with Sketch.

JavaScript program to convert the first letter of a string into uppercase:

function capitalizeFirstLetter(str) {
  return str.charAt(0).toUpperCase() + str.slice(1);
}

console.log(capitalizeFirstLetter("javascript"));

Leave a Reply

Your email address will not be published. Required fields are marked *