mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
Added backticks for a keyword.
Added backticks for the “this” keyword.
This commit is contained in:
parent
91218b4fce
commit
80bb3a0642
@ -413,7 +413,7 @@ var doubler = product.bind(this, 2);
|
||||
doubler(8); // = 16
|
||||
|
||||
// When you call a function with the `new` keyword, a new object is created, and
|
||||
// made available to the function via the this keyword. Functions designed to be
|
||||
// made available to the function via the `this` keyword. Functions designed to be
|
||||
// called like that are called constructors.
|
||||
|
||||
var MyConstructor = function(){
|
||||
|
Loading…
Reference in New Issue
Block a user