function mul(a, b) { return a * b; }
var factorThree = mul.bind(null, 3);
factorThree(2)
6
function factor(a) { return mul.bind(null, a); }
[0, 1.5, -3].map(factor(3))
[0, 4.5, -9]
var arrMap = [].map.bind([0, 1.5, -3])
arrMap(factor(3))
[0, 4.5, -9]
The console allows you to interact with the course material and examples. Use the following keys:
A special logging function is also available: