+ 7
Please run my code see if it works!
Someone said syntax error, but it works when I run on my device, want to be sure. NB: Entering just numbers won't display anything, I intentionally curbed that cos' numbers can't be a name. Apart from that, alphabets mixed numbers will work or don't enter anything at all. https://code.sololearn.com/WsqUn2N78wkY/?ref=app
11 Respostas
+ 18
@Janez
U are not limited to use only one id,
u can use multiple id's but each of dem must be have a different name.
+ 12
It give me a syntax error...
______________________________
Uncaught Syntax Error: Unexpected token )
Line 18
______________________________
+ 5
works for me
+ 3
thanks @jay
+ 2
I am not sure why it doesn't work for some of you.
@Trag, 'Let' is ES6 block scope variable declaration to replace 'var'.
+ 1
Ok Ben it works on mine SAMSUNG GALAXY NOTE 3
+ 1
Work, but 2 questions : why are you coding between <script> while you can type directly in javascript section and what the hell is "let"?
+ 1
@Abdul thank you
+ 1
cool.. it works
0
I dont know javascript yet but in html isnt that you can use only 1 ID?
0
syntax error