SpaceX interview question

Make a JavaScript class with various functionality.