@azzykesumaSubmitted over 3 years ago
any feedback will be appreciated!
any feedback will be appreciated!
just some feedback, take this with a grain of salt as i didn't even complete this challenge, but you can use :focus and save lines in js instead of doing an if statement to add classes, also I'm pretty sure event doesent have to be an argument for it to work. so for handleClick something like tipval = parseFloat(event.target.innerHTML), and for calculating the percentage I would divide by one hundred in that function to avoid confusion.
Is the code good (in terms of semantics, aside from me doing some things wrong, don't have alot of time)