Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
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?