Skip to content

Commit

Permalink
restructured
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonawane-Karan26 authored Dec 3, 2021
1 parent 9b47b5e commit b378583
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Chapter 13/Project_1.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ function login(password) {
if (passwordChecker(password)) {
resolve({
status: true
})
});
} else {
reject({
status: false
})
});
}
})
});
}

function checker(pass) {
login(pass)
.then(token => {
console.log("Approve:");
console.log(token)
console.log(token);
})
.catch(value => {
console.log("Reject:");
console.log(value)
console.log(value);
})
}
checker("1234");
Expand Down

0 comments on commit b378583

Please sign in to comment.