Skip to content
Advertisement

is it possible to access classes inside if statement?? the output what i am getting is wrong

JavaScript
JavaScript

It’s a program to perform a counter which increases, decreases, and reset the count from 0, but the output that I am getting is only increasing with a negative sign

i access classes inside if statement directly. is it possible to directly access classes without using event objects.

Advertisement

Answer

Added values in button and used switch/case

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement