How to uppercase a string in JavaScript

Last updated Nov 11, 2017
const text = 'Hello World';

text.toUpperCase();
HELLO WORLD