+ 1

How do i solve it? Plz help me.

You are working on a Contact Manager app. You have created the contact object constructor, which has two arguments, name and number. You need to add a print() method to the object, which will output the contact data to the console in the following format: name: number The given code declares two objects and calls their print() methods. Complete the code by defining the print() method for the objects.

16th Mar 2022, 8:25 AM
Mohammad Faysal
Mohammad Faysal - avatar
5 odpowiedzi
+ 3
First show your code so we can help.
16th Mar 2022, 8:37 AM
Adil
Adil - avatar
+ 3
Repeat the objects module of the JavaScript course.
16th Mar 2022, 8:37 AM
Mustafa A
Mustafa A - avatar
+ 2
Mustafa A is right. Review the object module.
16th Mar 2022, 8:43 AM
Adil
Adil - avatar
+ 1
function contact(name, number) { this.name = name; this.number = number; } var a = new contact("David", 12345); var b = new contact("Amy", 987654321); a.print(); b.print();
16th Mar 2022, 8:40 AM
Mohammad Faysal
Mohammad Faysal - avatar
+ 1
36 code project in javascript.
16th Mar 2022, 8:44 AM
Mohammad Faysal
Mohammad Faysal - avatar