+ 1

Please help me with code

I decided to make a function like "switch", but faster to write. But I have problems. Very stange... https://code.sololearn.com/WJ6e8DpMkGVK/?ref=app

6th Oct 2019, 3:37 PM
Ashas Yiksvorogom
Ashas Yiksvorogom - avatar
8 Réponses
+ 2
If you will write Code in this way then you can understand easily. Edited By @A J https://code.sololearn.com/Wco2pRzteD1F/?ref=app
6th Oct 2019, 4:01 PM
A͢J
A͢J - avatar
+ 2
Ashas Yiksvorogom Try to write Code in Html and open it on browser. And check in Console so you can get your answer. If you are facing any problem then ask again.
6th Oct 2019, 4:13 PM
A͢J
A͢J - avatar
+ 1
Ashas Yiksvorogom Check in your code on line no 7 if("+v+"=="inp[t] Check this. You didn't put + after ==
6th Oct 2019, 4:05 PM
A͢J
A͢J - avatar
0
You have written if statement in " " . Why?
6th Oct 2019, 3:52 PM
A͢J
A͢J - avatar
0
Ok, thx
6th Oct 2019, 4:06 PM
Ashas Yiksvorogom
Ashas Yiksvorogom - avatar
0
But this dont works. Why "unexpected identifier"?
6th Oct 2019, 4:08 PM
Ashas Yiksvorogom
Ashas Yiksvorogom - avatar
0
if("+v+"inp[t] e.t.c. - but i dont need + here.
6th Oct 2019, 4:10 PM
Ashas Yiksvorogom
Ashas Yiksvorogom - avatar
0
Okay..
6th Oct 2019, 4:14 PM
Ashas Yiksvorogom
Ashas Yiksvorogom - avatar