Sololearn: Learn to Code
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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