Skip to content

Instantly share code, notes, and snippets.

class Foo {
constructor() {
this.baz = "baz";
}
doStuff() {
console.log(this.baz);
}
}
const createCar = (carMake) => {
const make = carMake;
return {
getMake: () => {
return make
}
}
}
class Car {
constructor(make) {
this.make = make
}
getMake() {
return this.make;
}
}
Foo.prototype = Object.create(shared);
Bar.prototype = Object.create(shared);
Foo.prototype.logHello = function() {
console.log("hello");
};
var objFoo = new Foo();
var objBar = new Bar();
Foo.prototype = shared;
Bar.prototype = shared;
Foo.prototype.logHello = function() {
console.log("hello");
};
var objFoo = new Foo();
var objBar = new Bar();
var shared = {
logBar: function() {
console.log("bar");
},
logFoo: function() {
console.log("foo");
}
};
var Foo = function() {
var Foo = function() {
// ...
};
Foo.prototype = {
logBar: function() {
console.log("bar");
},
logFoo: function() {
console.log("foo");
var Foo = function() {
// ...
};
Foo.prototype.logBar = function() {
console.log("bar");
};
Foo.prototype.logFoo = function() {
console.log("foo");
QUnit.module("Counter Tests", {
setup: function() {
},
teardown: function() {
}
})
[Test]
public void SchedulerController_Should_start_background_process_on_post()
{
// Arrange
var controller = new SchedulerController(_context, _client);
// Act
controller.Post(new AssetApiModel() {FileName = "foo", Url = "bar"});
// Assert