String.prototype.toUpperCase()
Transform all text in a string to uppercase.
let text = 'This sentence has some MIXED CASE LeTTeRs in it.';
// returns "THIS SENTENCE HAS SOME MIXED CASE LETTERS IN IT."
let upper = text.toUpperCase();
⏰ Preorder my new course on Web Components! Want to learn how to build Web Components from scratch, master best practices, and more? Preorder today and get $100 off of the launch price.
Find this useful? You can support my work by purchasing an annual membership.