Unanswered question

Convert string to uppercase within Javascript

I need to generate a random 5 character string then convert it to uppercase. The built in string generator generates lowercase text but the app I am testing requires uppercase. Any suggestion son how I go about doing this?

Jeff H.
Jeff H.

Jeff H.

Level
0
13 / 100
points

Answers

Rajagopal B.
Rajagopal B.

Rajagopal B.

Level
1
346 / 750
points

Try this

var myVar = "test";

myVar = myVar.toUpperCase();