+ 3
Sony Hossain make print function not newContact function. And also no need to print extra things just print values inside print function this.print = function() { console.log(this.name + ': ' + this.number; } now just call a.print() b.print()
25th Nov 2022, 5:33 PM
A͢J
A͢J - avatar
+ 3
Sony Hossain You have to create print function inside given function 'contact' Making new function 'newContact' doesn't make any sense. Read the lesson again and try to solve
25th Nov 2022, 10:41 AM
A͢J
A͢J - avatar