Construir un Creador de Oraciones - Construye un Creador de Oraciones

Cuéntanos qué está pasando:

Hey, i’m trying everything, the problem might be the spaces between words but i can’ figure it put. help me please

Tu código hasta el momento

let adjective = "small";
let noun = "dragon";
let verb = "scared"; 
let place ="castle";
let adjective2 = "big";
let noun2 = "fruit";
let firstStory =  "Once upon a time, there was a "   + 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 = "gigantic";
noun = "bird";
verb = "angry"; 
place ="city";
adjective2 = "pointy";
noun2 = "people";
let secondStory = "Once upon a time, there was a " +  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)

Información de tu navegador:

El agente de usuario es: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36

Información del Desafío:

Construir un Creador de Oraciones - Construye un Creador de Oraciones

Welcome to the forum @ledandekul

Use the text a(n) where it is mentioned.

The other issue is spacing. Carefully read the text in the console, and compare it to the expected text.

  • in one place there is not enough spacing
  • in another place there is an extra space

Happy coding

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