0
It's my first code in JavaScript... Why it doesn't work? Surely I'm doing something wrong...
24 Answers
+ 1
Oh, perfect. Thank you a lot.
0
line 15: numero();
0
line 6: promt -> prompt
0
Sorry, I've not understood. Whats the problem in line 6?
0
Thank you for answering
0
you have lost letter p in promPt
0
Oh, sure. But it still doesnt work...
0
line 15: numero; -> numero ();
you need to add brackets to call the function
0
I did it, but its not working how it should. I mean, it was supposed to be a moltiplication tables calculator...
0
can you change variable name inside numero() function?
0
Instead when you insert the number, for example 2 it just make a sequence like 2222222
0
Yes, with something different?
0
line 6: .... = Number( prompt ("Insert number") );
0
yes, don't use same names of function and variable inside
0
Ok, I change it. But it's still doing a sequence of number, without calculating the moltiplication table; how it should instead.
0
line 6 : var number =Number ( prompt ("Insert number") );
0
Now it's just returning as result the number that you enter
0
rename variable number to n please
0
and everything will work
0
line 7: for (; n <= 10000; n+=n ) {