These are chat archives for FreeCodeCamp/Help
get help in general - we have more specialized help rooms here: https://gitter.im/FreeCodeCamp/home
var adjective1 = "amazing";
var adjective2 = "fun";
var adjective3 = "entertaining";
Assign the resulting string to a variable called madLib.
var(short for variable) followed by a name means you are creating a variable.
/* create a variable named 'firstName' and assign it a value of type string "Andrea" */ var firstName = "Andrea" var age = undefined // new variable, different value. var sentence = firstName + " is " + age + " years old."
what do you think the output of
sentence is? :)
var x = "test" var s = "this is a" + x // will output "this is atest"
\tto create spaces. JS treat everything inside quotes as a string by default.
"I have no space" "I have a space at the end " // <-- note the space after the d and before the closing "
more so, when you wrote
escapes are used in strings. And you were out of one (remember you closed the string with a " a couple of strokes before)
don't be intimidated by JS.
my advice is take your time and understand things... before trying random solution :)