This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function foo(role, level) { | |
console.log(`Your role is ${role} and your level is ${level}.`); | |
console.log(this); | |
} | |
foo(); | |
var person = { | |
name: 'Julie' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fluent api | |
function Chai() {} | |
Chai.prototype.expect = function(number) { | |
this.number = number; | |
return this; | |
}; | |
Chai.prototype.increment = function() { |
NewerOlder