Pergunta de entrevista da empresa Workday

Implement a JavaScript class that allows you to add multiple numbers, and print the result, i.e. add(1).add(3).print().