Skip to content

Commit 09dbc30

Browse files
authored
Merge pull request #48 from intelagense/rps-hotfix
fix: declare computer variable with const
2 parents 02b4e00 + 718adb9 commit 09dbc30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

3-conditionals/17-rock-paper-scissors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// 2 = Scissors
77

88
const player = 3;
9-
computer = Math.floor(Math.random() * 3)
9+
const computer = Math.floor(Math.random() * 3);
1010

1111
if (player === 0) {
1212
if (computer == 0) {

0 commit comments

Comments
 (0)