how to create a function inside a constructor function in javascript code example
Example: how to create a constructor in javascript
function Bird() {
this.name = "Albert";
this.color = "blue";
this.numLegs = 2;
}
let blueBird = new Bird();