QASource interview question

Asked about working of javascript and oops concepts