Tell us what’s happening:
i’m trying to run my program, my spacing is correct each and everything is correct stilll nothing is being compiled what this?
Your code so far
// as told by freecodecamp to declare variables
let adjective = "Brave",noun ="Bear",verb = "Angry",place = "Lahore", // I'm a born pakistani why use NY?
adjective2 ="Calm",noun2 = "Meat";
// string should remain constant all the time
// ERROR PATA NAHI KYA ARAHA
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);
// reassigning everything for new program (new story 2)
adjective = "mighty";
noun = "dragon";
noun2 = "sheep";
place = "dark cave";
adjective2 = "gigantic";
verb = "angry";
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 + ".";
// displaying 2nd story
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