Skip to content

Commit c847401

Browse files
authored
Update 19-lucky-number.js
1 parent 028a363 commit c847401

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

4-loops/19-lucky-number.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
// Codédex
33

44
const luckyNumber = 7;
5+
56
let guess = Math.floor(Math.random() * 10) + 1;
67

78
while (guess != luckyNumber) {
8-
console.log(`${guess} is not it.`);
9+
console.log(`Nope, it isn't ${guess}`)
910
guess = Math.floor(Math.random() * 10) + 1;
1011
}
1112

12-
console.log(`You got it! The lucky number was ${luckyNumber}`);
13+
console.log(`My lucky number is ${luckyNumber}!`);

0 commit comments

Comments
 (0)