Skip to content

Commit

Permalink
Updated 'calculating squares' code (#32357)
Browse files Browse the repository at this point in the history
Added two lines breaks after finished so the next time the function is used it won't appear in the same line but in the next one.
  • Loading branch information
javicavi authored Feb 25, 2024
1 parent 5075743 commit b072a7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function calculate() {
const newResult = `${i} x ${i} = ${i * i}`;
results.textContent += `${newResult}\n`;
}
results.textContent += "\nFinished!";
results.textContent += "\nFinished!\n\n";
}

const calculateBtn = document.querySelector("#calculate");
Expand Down

0 comments on commit b072a7e

Please sign in to comment.