Question: In JavaScript please. 2 Add a method to the Person's prototype called isLegalDriver that returns true if the person i 16 or older. 1- function
2 Add a method to the Person's prototype called "isLegalDriver" that returns true if the person i 16 or older. 1- function Person(nome, age) t 5 / Do not modify code below this line / 7 const youngPerson - new PersonC'Jane', 15); 8 console. log(youngPerson.isLegalDriverO, should be false); 10 const olderPerson = new Person('Joan', 16); lauconsole.log(olderPerson.isLegal Driver(), '
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
