Constructing Strings with Variables

Constructing Strings with Variables
0

#1

I am at my wit’s end with this problem. I looked at several hints, both on FCC and GH, and typed the answrs in exactly how they look on their respective pages. I typed in every possible solution I could think of and even added quotations to my name so it would be properly defined. Nothing is working! I honestly don’t know what else I can do. If any of you could help me with this, I would greatly appreciate it.


#2

Your task:

Use two + operators to build myStr with myName inside it

Look at this example :

var ourStr = "Hello, our name is " + ourName + ", how are you?";

this example build ourStr with ourName inside it


#3

The thing is, even if I don’t use quotations, I get an error message, telling me my name is “undefined”. That’s the main reason I’m stuck on this problem.


#4

is your code still exactly same with that screenshot ?

if yes, change “Hunter” at line 8 to myName

if not, put your code here


#5

Hey, it worked! Thanks!