Hello developers

This is Sri.
i am having a hard time in understanding Prototype and Constructor in Javascript.

Can anyone please clarify my doubts.

  1. What does mean by Prototype in Javascript?
  2. What is Constructor?
  3. what are the uses of Prototype and Constructor JS?
  4. why do we use Prototype and constructor in JS?



Thanks in advance.