86
I want to convert a string to all uppercase, How to do that in Javascript?
toUpperCase() method is used to convert a string to all upper case.
toUpperCase()
Check the below example for usage:
let str ="Hello, World!"; console.log(str.toUpperCase());
Run here https://onecompiler.com/javascript/3xns6xg48