Facebook Interview Question: What's the difference between... | Glassdoor.co.uk

Interview Question

Front End Developer Interview London, England

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


Interview Answer

1 Answer


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])

Ahmed ElSheikh on 25 Oct 2018

Add Answers or Comments

To comment on this, Sign In or Sign Up.