Domanda di colloquio di RudderStack

Write function which takes multiple inputs and returns sum like this - sum(1)(2)(3)? What are polyfills? Write an example polyfill? Write algo to flatten array? How to deep copy a nested array? How are authentication tokens stored?