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 Antwort
+ 9
Integer can't be 02.00
25th Jan 2018, 10:55 AM
Calviղ
Calviղ - avatar