Wolfram Research interview question

How to create class in JS ?