+ 1

Working on app but not browser

I updated my code here and it’s working on my phone but on the browser it isn’t working. When I click on “color” I lose everything, can someone explain to me what’s going on? https://sololearn.com/compiler-playground/Wk8HrWduxZRT/?ref=app

24th Jun 2024, 1:28 PM
Zvi
Zvi - avatar
1 Answer
+ 4
html: form is not closed js: const everywhere; why? fixing these won't change the behavior. +1 note: you are asking for a hex color, but what if user enters invalid data? or enters a # symbol as well? or if forgets to add # at the beginning?
24th Jun 2024, 2:02 PM
Mihaly Nyilas
Mihaly Nyilas - avatar