Welcome to the Treehouse Community
Looking to learn something new?
Assign an all uppercase version of the id variable to the userName variable. Don't understand the question.
the exercise is :
var id = "2318"; var lastName = "Smith";
can't figure it out. Can anyone help!!
var id = "23188xtr"; var lastName = "Smith"; var userName
So the requirement is this: Assign an all uppercase version of the id variable to the userName variable
Let's break it down step by step:
STEP 1 We need to assign something to the
userName variable. So at some point we have to do something like:
var userName = ???
The question remains: what to put after the equals sign? The challenge says it needs to by the uppercase version of the
STEP 2 Transform the
id variable to all-uppercase
var userName = id.toUpperCase()
Hope this helps.
What is the period stands for? Can the id be replaced of lastName instead?
Thank you very much!! which lecture are you referring?