JavaScript JavaScript Basics (Retired) Storing and Tracking Information with Variables Using String Methods

Stellah Avanthi
Stellah Avanthi
Full Stack JavaScript Techdegree Student 5,934 Points

Finally, add a # symbol and lastName in uppercase to the end of the userName string. The final value of userName is "231

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

var userName = "id.toUpperCase()";
id += '#' + "lastName.toUpperCase()";
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>JavaScript Basics</title>
<script src="app.js"></script>

2 Answers

Brandon Leichty
Brandon Leichty
Full Stack JavaScript Techdegree Graduate 34,656 Points

Hey Stellah Avanthi,

You’re so darn close! Take a look at id.toUpperCase() and lastName.toUpperCase(). Anything inside of double quotes is considered a string in this scenario. Take a look at it and see if you can figure it out, and if you need more help let me know!

Good luck!