Skip to content

Commit

Permalink
add task solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Mykhailo Lapchynskyi authored and Mykhailo Lapchynskyi committed Oct 21, 2024
1 parent a8c3051 commit cdfc10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const numberToGuess = generateRandomNumber();

terminal.question('Guess the number', (userNumber) => {
if (!checkIsValidUserInput(userNumber)) {
return;
return 'Input is not a valid 4-digit number';
}

if (userNumber === numberToGuess) {
Expand Down

0 comments on commit cdfc10c

Please sign in to comment.