We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48d4606 commit b3cabcdCopy full SHA for b3cabcd
1 file changed
src/this.js
@@ -35,13 +35,19 @@ const checkPassword = function comparePasswords(passwordToCompare) {
35
// use `this` to access the object's `password` property.
36
// do not modify this function's parameters
37
// note that we use the `function` keyword and not `=>`
38
+
39
+ if (me.password === passwordToCompare) {
40
+ return true;
41
+ }
42
+ return false;
43
};
44
45
// invoke `checkPassword` on `me` by explicitly setting the `this` context
46
// use .call, .apply, and .bind
47
48
// .call
-
49
+checkPassword.call(me);
50
// .apply
51
+checkPassword.apply(me);
52
// .bind
53
+const boundPassword = checkPassword.bind(me);
0 commit comments