Code to go logo
Created using Figma
Use Cases
Contribute
How to uppercase a string in JavaScript
Strings
By Jad Joubran ·
Last updated Nov 11, 2017
const text = "Hello World"; text.toUpperCase();
HELLO WORLD
Nov 11, 2017
1
Jad Joubran
See answer
1
Jad Joubran
String.toUpperCase
on MDN
Learn JavaScript step by step
Related use cases
How to lowercase a string in JavaScript