DEV Community

Discussion on: Simple Calculator with Dark Mode.

Collapse
 
kretaceous profile image
Abhijit Hota

Great web-app with great UI! I surely learned something about dark-mode implementation.

Although, may I suggest you to add the readonly attribute to the text input for result, since you're using the notorious eval() function? I'm aware that it's a 'simple' calculator but I'm just suggesting.

Great project, though!😄

Collapse
 
zxcodes profile image
Mohammed Farmaan.

Yeah sure. I was more focussed on the UI so I didn't put that little extra effort to look into that. Thanks for the suggestion tho. Glad you learned something!😁