Question: Create a javascript code to declare an object by declaring a constructor called person with following key/value pairs. firat,Name: John, last Name: Doe, id: 5566

Create a javascript code to declare an object by declaring a constructor called person with following key/value pairs. firat,Name: "John", last Name: "Doe", id: 5566 Also declare a method named fullname() inside the constructor that will return the complete name(fullnametlastname)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
