Pregunta de entrevista de Meta

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

Respuesta de la entrevista

Anónimo

25 de oct 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)