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

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

document.write("HAVING TROUBLE HERE GUY'S!");

In all seriousness, can i get help please?

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

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

1 Answer

Steven Parker
Steven Parker
155,230 Points

Here's a few hints:

  • a semicolon ends a statement, no matter where it is on the line
  • you can't start a new statement with a plus sign
  • only one variable is being created, so "var" will only be needed once
  • "lastname" is a variable, not a function
  • the "toUpperCase" function doesn't take any argument(s)