Skip to content

Commit

Permalink
fix(week-2): update expression to show right time
Browse files Browse the repository at this point in the history
  • Loading branch information
yntpdotme committed Mar 1, 2024
1 parent 71d6f1e commit d66178f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let n = 3000;
sleep(n)
.then(() => {
// Log a message when the promise is resolved
console.log(`Function sleeps for ${n} seconds`);
console.log(`Function sleeps for ${n/1000} seconds`);
})
.catch(error => {
// Log an error message if the promise is rejected
Expand Down

0 comments on commit d66178f

Please sign in to comment.