Hello, I have completed the course but i don’t know why the UK version isn’t working.
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Silly_story_generator.
I would love some feedback
Hello, I have completed the course but i don’t know why the UK version isn’t working.
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Silly_story_generator.
I would love some feedback
Hello! Lets take a look at String.prototype.replace() documentation:
It says that this method does not change the calling String
object. It returns a new string. So you need to use
newStory = newStory.replace('94 fahrenheit', temperature);
instead of
newStory.replace('94 fahrenheit', temperature);
Do this where you replace the name, temperature and weight in your code.
And you also need replace the temperature and weight inside your if statement.
I hope this helps you!
wow! Thank you so much!
I’ve been staring at the mistake for long and I didn’t see it.