Basic JavaScript - Word Blanks

Tell us what’s happening: It seems that my code is correctly formulated. I am using a word of my choice (The). Besides that I have all the variables and using the concatenation (+) to link all my variables. I’m not sure what is the problem.

Describe your issue in detail here

Your code so far

const myNoun = "dog";
const myAdjective = "big";
const myVerb = "ran";
const myAdverb = "quickly";

// Only change code below this line
const wordBlanks = "The " + "" + myAdjective + "" + myNoun + "" + myVerb + "" + myAdverb + "."; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Safari/605.1.15

Challenge Information:

Basic JavaScript - Word Blanks

if you console thet you will see:
the output The bigdogranquickly.
there is no white space .
in order to put a white space in your code

put a space in quotes + " " + so the output is

The   big dog ran quickly.

Thank you soooooo much it worked. I was so confused lol. Thanks again.

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.