JavaScript JavaScript Basics Storing and Tracking Information with Variables Using String Methods

Use the JavaScript .toUpperCase( ) string method to assign an all uppercase version of the id variable to the userName v


var id = "23188xtr";
var lastName = "Smith";

 var userName= "string"
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
<script src="app.js"></script>

2 Answers

bible verse
bible verse
Pro Student 744 Points

First, you want to create the variable, and give it the name "userName".

(Shown here) var userName =

Then use the .toUpperCase method on the variable id.

(Shown here) id.toUpperCase()

Now you put them together,

(Shown here)

var userName = id.toUpperCase()

I hope this helps.