We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 028a363 commit c847401Copy full SHA for c847401
4-loops/19-lucky-number.js
@@ -2,11 +2,12 @@
2
// Codédex
3
4
const luckyNumber = 7;
5
+
6
let guess = Math.floor(Math.random() * 10) + 1;
7
8
while (guess != luckyNumber) {
- console.log(`${guess} is not it.`);
9
+ console.log(`Nope, it isn't ${guess}`)
10
guess = Math.floor(Math.random() * 10) + 1;
11
}
12
-console.log(`You got it! The lucky number was ${luckyNumber}`);
13
+console.log(`My lucky number is ${luckyNumber}!`);
0 commit comments