Skip to content

Commit 08150cb

Browse files
committed
changed return variables names
1 parent 326027d commit 08150cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ const bcrypt = require('bcrypt');
1111

1212
//START_ASYNC -do not remove notes, place code between correct pair of notes.
1313

14-
bcrypt.hash(myPlaintextPassword, saltRounds, (error, hash) => {
14+
bcrypt.hash(myPlaintextPassword, saltRounds, (err, hash) => {
1515
console.log(hash);
1616

17-
bcrypt.compare(myPlaintextPassword, hash, (error, response) => {
18-
console.log(response);
17+
bcrypt.compare(myPlaintextPassword, hash, (err, res) => {
18+
console.log(res);
1919
});
2020
});
2121

0 commit comments

Comments
 (0)