Skip to content

Instantly share code, notes, and snippets.

View agjs's full-sized avatar
⌨️

Aleksandar Grbic agjs

⌨️
View GitHub Profile
function foo(role, level) {
console.log(`Your role is ${role} and your level is ${level}.`);
console.log(this);
}
foo();
var person = {
name: 'Julie'
};
// Fluent api
function Chai() {}
Chai.prototype.expect = function(number) {
this.number = number;
return this;
};
Chai.prototype.increment = function() {