Coggle requires JavaScript to display documents.
this
arguments
var test = function(val) { console.log(this) console.log(val) console.log(arguments) console.log(arguments[1]) }
> test(3,4);
> Window {window: Window...} > 3 > (2) {0: 3, 1: 4} > 3
let sum = function() { let sum = 0; for (let i = 0; i < arguments.length; i++) { sum += arguments[i] } console.log(sum) } sum(1,2,3,4,5,6)
new
call()
apply()
bind()