Skip to content

Commit 7dbdfac

Browse files
cursoragentLuxologyGG Audit
authored andcommitted
docs: use 'parameter' instead of 'argument' in tic-tac-toe tutorial
When introducing `function handleClick(i)`, `i` is a parameter in the function definition, not an argument. Fixes #8375.
1 parent 2639f36 commit 7dbdfac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,7 +1138,7 @@ JavaScript supports [closures](https://developer.mozilla.org/en-US/docs/Web/Java
11381138
11391139
</Note>
11401140
1141-
Now you can add X's to the board... but only to the upper left square. Your `handleClick` function is hardcoded to update the index for the upper left square (`0`). Let's update `handleClick` to be able to update any square. Add an argument `i` to the `handleClick` function that takes the index of the square to update:
1141+
Now you can add X's to the board... but only to the upper left square. Your `handleClick` function is hardcoded to update the index for the upper left square (`0`). Let's update `handleClick` to be able to update any square. Add a parameter `i` to the `handleClick` function that takes the index of the square to update:
11421142
11431143
```js {4,6}
11441144
export default function Board() {

0 commit comments

Comments
 (0)