0

I am confused because of the (*) line. because how come join() as function called without parenthesis

function hash() {

    let empty = [].join; // (*)

    alert(empty.call(arguments)); // 1,2

}

hash(1, 2);
  • `[].join.call()` - it's the `.call()` that *calls* the function. Also relevant: [Javascript call() & apply() vs bind()?](https://stackoverflow.com/q/15455009) – VLAZ Aug 25 '21 at 12:35

0 Answers0