function A() { this.test = function () { return 123; }; }
print(new A(), true);
function B() {}
B.prototype.test = function () { return 123; };
print(new B(), true);
function C_test() { return 123; }
function C() { this.test = C_test; }
var D = { test() { return 123; } };
function
keyword.
The console allows you to interact with the course material and examples. Use the following keys:
A special logging function is also available: