How to uppercase a string in JavaScript

Strings
By Jad Joubran · 
Last updated Nov 11, 2017
const text = "Hello World";

text.toUpperCase();
HELLO WORLD