Pergunta de entrevista da empresa Meta

What's the difference between call and apply (JavaScript)

Resposta da entrevista

Sigiloso

25 de out. de 2018

both are the same, they take an obj and set of params, however in apply you can pass params in form of an array of params, but in call they have to be passed list of params apply(obj, [2,3,3]) call(obj,2,3,3)