Constructing Strings with Variables?

Constructing Strings with Variables?
0

#1

Tell us what’s happening:

Your code so far

// Example
var ourName = "Free Code Camp";
var ourStr = "Hello, our name is " + ourName + ", how are you?";

// Only change code below this line
var myName= "Ameer";
var Ameer;
var myStr= "myname is " +Ameer+ "and i am swell! ";


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0.

Link to the challenge:


#2
// Only change code below this line
var myName= "Ameer";
var Ameer;
var myStr= "myname is " +Ameer+ "and i am swell! ";

What is the value of the variable Ameer?
What do you want the string to print?

You’re nearly there - just think carefully about the values you are assigning your variables.