check this out | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

check this out

This is my first code pls tell me how to improve and if you like it https://code.sololearn.com/WA105a21a20a/# My only problem is that if I run it a second time it comes up with an error. This only happens on my laptop. The error is: SyntaxError: Identifier 'userA' has already been declared

9th Jun 2021, 4:47 PM
Blake Grass
Blake Grass - avatar
5 Answers
+ 5
You could improve the UI to make it catchy.
9th Jun 2021, 7:49 PM
Isaac Fernandes
Isaac Fernandes - avatar
+ 3
Hey! This problem occurs because the sololearn desktop code playground has a bug. It is because you have used "const". It's not your fault. Try using let instead of const and let me know if the problem still persists.
11th Jun 2021, 5:48 PM
Isaac Fernandes
Isaac Fernandes - avatar
+ 2
It's not getting an error now. Played twice, each with two tries. On the second set I won, with 555 on the second try! 🎉😜
9th Jun 2021, 5:37 PM
Paul K Sadler
Paul K Sadler - avatar
+ 2
Improve the ui yes it would be good tip: use external css to be easier to edit css and have a good style
11th Jun 2021, 5:18 PM
Jad Yahya
Jad Yahya - avatar
0
Isaac I tried let but it didnt work. Also im not sure what let does exactly. I havent finished the javascript course yet. ty anyway
11th Jun 2021, 6:03 PM
Blake Grass
Blake Grass - avatar