mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-09-24 23:01:18 +08:00
Co-authored-by: Lasse Jørgensen <28780271+lasjorg@users.noreply.github.com>
This commit is contained in:
co-authored by
Lasse Jørgensen
parent
669b4908b1
commit
e1db798992
+2
-1
@@ -17,7 +17,7 @@ If there is a winner, you will want to show the `resetGameBtn` button and hide t
|
||||
|
||||
**Tips**
|
||||
|
||||
- You can use the `el.style.display` property to show the `resetGameBtn` button and hide the `optionsContainer`.
|
||||
Use the `style.display` property on an element, with the value `"block"` or `"none"`, to show or hide the element.
|
||||
|
||||
# --hints--
|
||||
|
||||
@@ -33,6 +33,7 @@ if (playerScore === 3) {
|
||||
} else {
|
||||
assert.equal(winnerMsgElement.innerText, "Computer has won the game!");
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
You should hide the `optionsContainer` and if the player or computer has reached three points.
|
||||
|
||||
Reference in New Issue
Block a user