Cognizant Interview Question

OOPs concepts in javascript