Skip to content

Commit dbbb042

Browse files
author
Daksh Dhami
committed
fix: correct parameter vs argument terminology in tutorial
Per #8375, a function definition receives a parameter, not an argument. The value passed during a function call is an argument. - 'Add an argument i to the handleClick function' + 'Add a parameter i to the handleClick function'
1 parent 48c69d3 commit dbbb042

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
@@ -1137,7 +1137,7 @@ JavaScript supports [closures](https://developer.mozilla.org/en-US/docs/Web/Java
11371137
11381138
</Note>
11391139
1140-
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:
1140+
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:
11411141
11421142
```js {4,6}
11431143
export default function Board() {

0 commit comments

Comments
 (0)