While, I’m playing with the Prototype, I want to show the multiple variables like
Person.prototype.lastName = 'Verma';
Person.prototype.companyName = 'Abihi'
console.log(john.lastName);
How can I add the companyName without creating the second console.log like console.log(john.companyName);
Is there any way to write side by side - “Verma, abihi” ?