Can someone help me to figure this out? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can someone help me to figure this out?

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.

12th Dec 2020, 10:43 PM
Ouabi Abdessamad
Ouabi Abdessamad - avatar
2 Answers
0
Heres an example in java, you can do similar in javascript hope it helps :) https://code.sololearn.com/c74TlRbvFUZt/?ref=app
13th Dec 2020, 12:26 AM
D_Stark
D_Stark - avatar
0
Thank you for your help I appreciate that
13th Dec 2020, 4:32 PM
Ouabi Abdessamad
Ouabi Abdessamad - avatar