loading
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
const firstFunctionExample = function(g) {
  console.log(g);
};
// call just takes all the arguments you give it
// and passes it to the function you are calling with .call
firstFunctionExample.call(null, 'hello');


const anotherFunction = function(g, h) {
  console.log(g + h);
};
anotherFunction.apply(null, ['hello', 'world']);
Native Browser JavaScript