Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
(tic-tac-toe) fix or-and in sentence (#5646)
Browse files Browse the repository at this point in the history
* 🐛 (tic-tac-toe) fix or-and in sentence

* chore: use an just like previous para

---------

Co-authored-by: Delphine Bugner <[email protected]>
Co-authored-by: Strek <[email protected]>
  • Loading branch information
3 people authored Mar 5, 2023
1 parent c7db27b commit ba290ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beta/src/content/learn/tutorial-tic-tac-toe.md
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ But wait, there's a problem. Try clicking on the same square multiple times:
The `X` is overwritten by an `O`! While this would add a very interesting twist to the game, we're going to stick to the original rules for now.
When you mark a square with a `X` or a `O` you aren't first checking to see if the square already has a `X` or `O` value. You can fix this by *returning early*. You'll check to see if the square already has a `X` or and `O`. If the square is already filled, you will `return` in the `handleClick` function early--before it tries to update the board state.
When you mark a square with a `X` or an `O` you aren't first checking to see if the square already has a `X` or `O` value. You can fix this by *returning early*. You'll check to see if the square already has a `X` or an `O`. If the square is already filled, you will `return` in the `handleClick` function early--before it tries to update the board state.
```js {2,3,4}
function handleClick(i) {
Expand Down

0 comments on commit ba290ad

Please sign in to comment.