financial.com interview question

Object Oriented Javascript