How to change a String's Case in JavaScript

Strings can be capitalized using String.toUpperCase
For instance;

const str = 'John swana'



String.toLowerCase turns strings to their small letters or 'lowerCase'

const strr = "Lorem ipsum"

// lorem ipsum

Numbers are not converted, they remain constant, untouched and unchanged.


// '65'


Popular posts from this blog

Open-graph meta data tags introdution

What is 'this.' keyword in JavaScript

How to create zip archives in nodejs

what is 'array.includes' function in JavaScript

How to build a twitter retweet bot using JavaScript