grammatical fix

This commit is contained in:
Mustafa Kemal Tuna 2020-07-21 20:27:36 +03:00 committed by GitHub
parent 4fdf4c3083
commit b70f9498d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ sayHi(); // Hello, John!
setTimeout(sayHi, 1000); // Hello, John! setTimeout(sayHi, 1000); // Hello, John!
// even if the value of user changes within 1 second // even if the value of user changes within 1 second
// sayHi uses the pre-bound value which is reference to old user object // sayHi uses the pre-bound value which is reference to the old user object
user = { user = {
sayHi() { alert("Another user in setTimeout!"); } sayHi() { alert("Another user in setTimeout!"); }
}; };