objects and such:
constructors, methods, inheritance, anonymous functions, classes and instances in JavaScript
Source code(Modify and test)
Run function
Output