"I would really appreciate an assessment on the “Silly Story Generator”
I am stucked and dont know where the problem is.
https://codepen.io/mutwakil-ahmed/pen/wvKXGOd
Hi there @mutwakil96.
Your code mostly works fine. The only thing I noticed was that the check for using UK measurements instead of US wasn’t quite right. I updated it as follows, and it was fine:
if(document.getElementById("uk").checked) {
let weight = Math.round(300 * 0.071428571428571) + " stone";
let temperature = Math.round((94 - 32) * 5/9) + " centigrade";
newStory = newStory.replace("94 fahrenheit", temperature);
newStory = newStory.replace("300 pounds", weight);
}