Where is the mistake in my code? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Where is the mistake in my code?

This is my code. I've recoded the example, but with other values, just for practicing. Each time I've tried to run the code I've had the ERROR message: "missing )" in the line of var info2, where I wrote a comment. function data(time, cap, user) { this.time = time; this.cap = cap; this.user = user; } var info1 = new data(15.00,"1GB","name"); var info2 = new data(02.00,"3GB","name2");// Here is the Bug document.write(info1.time); document.write(info1.user);

25th Jan 2018, 10:40 AM
Christian Mumber
Christian Mumber - avatar
1 Respuesta
+ 9
Integer can't be 02.00
25th Jan 2018, 10:55 AM
Calviղ
Calviղ - avatar