function test(a, b, c) { return [a, b, c]; }
test.call(null, 1, 2, 3)
[1, 2, 3]
var args = [4, 5, 6];
test.apply(null, args)
[4, 5, 6]
test.name + '/' + test.length
"test/3"
var add = new Function('a', 'b', 'return a + b;')
add.name + '/' + add.length
"anonymous/2"
add(1, 3)
4
The console allows you to interact with the course material and examples. Use the following keys:
A special logging function is also available: