Thank you for the reply. Should I be using a dynamic environment? How do i do that? I’m still not sure what the difference is between these except just being two different ways to write the same thing? How do i know when to use the right thing?
ok i’m at wits end with lesson 6/10 i’m stuck like chuck someone please help me with JS 6/10 please. I’m stuck where it states that i have to use the concatenation string with using a space i did what its telling me without any red error but still no green check mark either. Please help. Thanks
Perhaps you can share a screenshot of your code OR copy paste your code here (code would be just two lines) so that we can spot any issues.
In the second step of the exercise, you will be concatenating three strings together (the second string will be a string with a single space i.e. ' ' ) . The hint also shows how to accomplish this. If it still doesn’t work, then perhaps a screenshot or copy/paste of your code may reveal some clues.
I figured it out!!! Thanks for replying I was getting frustrated but i was so focused and determined in figuring it out on my own. That’s what I love about codecademy. So it was so simple can’t believe it took me so long but finally got it. I simply just added a space after Hello and another space after the last string!!!
there are two ways to fix this. The first one (which i believe codecademy wants you to do) is to leave a space after the first string OR before the second string. Ie, below:
console.log('Hello '+ ‘World’); OR // Notice the space after the o in the ‘Hello ’
console.log(‘Hello’+ ’ World’); // Notice the space before the W in the ’ World ’
the second one is what i believe you are trying to do.
console.log(‘string1’ + ’ ’ + ‘string2’); //it will work fine in any code editor, Just press the space key on your keyboard to create space between the empty quote : ’ ’