JavaScript is a prototype based object oriented language, which means it doesnt have classes rather it define behaviors using constructor function and then reuse it using the prototype.