From af5a4cf5428ac1a8b5cfdb6a8d211e3571b9c518 Mon Sep 17 00:00:00 2001 From: MaoShizhong <122839503+MaoShizhong@users.noreply.github.com> Date: Fri, 1 Nov 2024 16:34:06 +0000 Subject: [PATCH] Number Game Errors: Format with Prettier (#776) ## Because As per (https://github.com/mdn/content/pull/36541#issuecomment-2450332532), the MDN code standard uses Prettier. This repo hasn't fully caught up but this exercise can be formatted as the changes in that PR would reference this code's line numbers. Using Prettier here would also mean fewer discrepancies in case any learners happen to already have Prettier configured (e.g. formatting on autosave) - not too unreasonable of a situation. ## This PR - Formats the number game html file with Prettier's default rules. --- .../troubleshooting/number-game-errors.html | 72 ++++++++++--------- 1 file changed, 38 insertions(+), 34 deletions(-) diff --git a/javascript/introduction-to-js-1/troubleshooting/number-game-errors.html b/javascript/introduction-to-js-1/troubleshooting/number-game-errors.html index 3a01026ef..0e40f3293 100644 --- a/javascript/introduction-to-js-1/troubleshooting/number-game-errors.html +++ b/javascript/introduction-to-js-1/troubleshooting/number-game-errors.html @@ -1,7 +1,7 @@ - + - + Number guessing game @@ -25,12 +25,16 @@

Number guessing game

-

We have selected a random number between 1 and 100. See if you can guess it in 10 turns or less. We'll tell you if your guess was too high or too low.

+

+ We have selected a random number between 1 and 100. See if you can guess + it in 10 turns or less. We'll tell you if your guess was too high or too + low. +

- - + +
@@ -42,70 +46,70 @@

Number guessing game