Converting Strings to Lowercase with JavaScript

Article By Digamber Rawat on

JavaScript toLowerCase() method to converts a string to lowercase. This method method does not change the original string and returns the converted string. As far as the browser support is concerned this method is fully supported by almost every browser.

JavaScript’s toLowerCase() example.

let movie = 'AVENGER ENDGAME';

// output: "avenger endgame"

JavaScript toUpperCase() Syntax


str: This string needs to be attached with the toLowerCase() method.

let movie = "THE HELL BOY";
let result = movie.toLowerCase();
// output: "the hell boy"

Digamber Rawat

Feel free to contact me, If you are looking for a freelance full stack Developer, with the following skills: Mongo DB, Express JS, Angualr 2+, Node JS, Loopback JS, Firebase, Ionic Framework and WordPress. I also offer remote contracting service to the clients across the globe. Hire Me