+ 1

Code project 36

Please I need solution for code project 36 in Javascript

14th May 2021, 1:32 PM
YVES ROMIALD TCHAMDE DJEUMO
7 Réponses
+ 2
SoloLearn is not an answer giving apps or service. You need to show your attempts first and then the community and you can think and solve together hopefully.
14th May 2021, 1:46 PM
minirkk
minirkk - avatar
+ 1
TCHAMDE DJEUMO YVES ROMIALD what's wrong with your code? Or, what is the question asking for?
14th May 2021, 1:54 PM
minirkk
minirkk - avatar
+ 1
Hi, maybe it will work for you: function contact(name, number) { this.name = name; this.number = number; this.print = function (){ console.log(this.name + ": " + this.number)}; } var a = new contact("David", 12345); var b = new contact("Amy", 987654321) a.print(); b.print();
20th Mar 2022, 5:41 AM
Abdukholiq
0
Here is my atempt: function contact(name, number) { this.name = name; this.number = number; this.print=function(){ alert(this.name+": "+this.number);} } var a = new contact("David", 12345); var b = new contact("Amy", 987654321); a.print(); b.print();
14th May 2021, 1:49 PM
YVES ROMIALD TCHAMDE DJEUMO
0
He gives me an error
14th May 2021, 1:55 PM
YVES ROMIALD TCHAMDE DJEUMO
0
Thank you it works
14th May 2021, 10:22 PM
YVES ROMIALD TCHAMDE DJEUMO
0
guys, i need help.. i dont know in that i wrong... function contact(name, number) { this.name = name; this.number = number; this.print=function(){ console.log(this.name+":"+this.number); } } var a = new contact("David", 12345); var b = new contact("Amy", 987654321); a.print(); b.print();
13th Mar 2022, 11:38 PM
JUAN SEBASTIAN LONDOÑO COSSIO
JUAN SEBASTIAN LONDOÑO COSSIO - avatar