You should change those divs and use button elements for the buttons, and for the "display" maybe use an output element. Also eval is not the safest, so maybe have some kind of safe parser? Something that builds a safe function call based on numbers and operators (like if it sees 1 + 2, it actuall calls an add function passing 1 and 2 as arguments).
Tech Lead/Team Lead. Senior WebDev.
Intermediate Grade on Computer Systems-
High Grade on Web Application Development-
MBA (+Marketing+HHRR).
Studied a bit of law, economics and design
Location
Spain
Education
Higher Level Education Certificate on Web Application Development
Agree on everything. Moreover I'd add key events so you can use it with the keyboard but... That's what happen when no planning is performed before coding 😂 I just started with a few hours countdown and that's what I came out with.
I did it for fun and I'm not sure I'll spend more time on it, let's see what happen in the next boredom episode
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You should change those
divs and usebuttonelements for the buttons, and for the "display" maybe use anoutputelement. Alsoevalis not the safest, so maybe have some kind of safe parser? Something that builds a safe function call based on numbers and operators (like if it sees1 + 2, it actuall calls anaddfunction passing1and2as arguments).Cheers!
Agree on everything. Moreover I'd add key events so you can use it with the keyboard but... That's what happen when no planning is performed before coding 😂 I just started with a few hours countdown and that's what I came out with.

I did it for fun and I'm not sure I'll spend more time on it, let's see what happen in the next boredom episode