employer cover photo
employer logo
employer logo

Aurora Innovation

Is this your company?

Aurora Innovation Interview Question

Implement a factory function that given a JS class as an input, returns a new class with all of the same methods as the input, but also with logging in each of those methods.

Interview Answer

Anonymous

Sep 27, 2021

After admittedly struggling to remember some syntax for enumerating over ES6 class methods, I completed the task, only to be told that I could have returned a class that simply extended the input. That in my opinion is not what the prompt described by a "new" class. Oh well.