Build a Sentence Maker - Build a Sentence Maker

Tell us what’s happening:

Everything is in order except for step 14, about using the correct format and spaces. I’ve been doing this for 1 hour and 30 minutes, and I haven’t found any errors.

Your code so far

let adjective = "fierce";
let noun = "dragon";
let verb = "angry";
let place = "ancient cave";
let adjective2 = "smoky";
let noun2 = "scrolls";

const firstStory = "Once upon a time, there was a(n) " + adjective + " " + noun + " who loved to eat " + noun2 + ". The " + noun + " lived in a " + place + ", and had " + adjective2 + " nostrils that blew fire when it was " + verb + ".";
console.log("First story: " + firstStory);

adjective = "curious";        
noun = "fox";                   
noun2 = "berries";               
place = "enchanted forest";      
adjective2 = "glowing";           
verb = "excited";                 
 
const secondStory = "Once upon a time, there was a(n) " + adjective + " " + noun + " who loved to eat " + noun2 + ". The " + noun + " lived in a " + place + ", and had " + adjective2 + " nostrils that blew fire when it was " + verb + ".";
console.log("Second story: " + secondStory);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36

Challenge Information:

Build a Sentence Maker - Build a Sentence Maker

https://www.freecodecamp.org/learn/full-stack-developer/lab-sentence-maker/build-a-sentence-maker

i found a mistake by following a debugging technique which involves placing the expected string and the actual output string vertically in an editor and checking for errors.

I’ll give you an example of how to do this so you can find the mistake(s) faster.
Step 1- grab the expected string. In this case it is:

Once upon a time, there was a(n) [adjective] [noun] who loved to eat [noun2]. The [noun] lived in a [place] and had [adjective2] nostrils that blew fire when it was [verb].

Replace the [adjective] and [noun] with the ones from your console.log (for eg smoky replaces adjective2 etc)

Now copy the string you’re printing directly below:

Once upon a time, there was a(n) fierce dragon who loved to eat scrolls. The dragon lived in a ancient cave, and had smoky nostrils that blew fire when it was angry.

if anything is misaligned, you’ve made a mistake.

So a smaller example to illustrate would be:

Once upon a time, there was a(n)...
Once upon a time there was a(n)...

In this example, you can see the sentences are not an exact match. So try this technique.