Need assessment for events skill test 1

https://codepen.io/JyotiDuhan/pen/rNyLwGN

Hello @duhan_jyoti

you doing great well done

and you can also solve it without the need to extra variable like the flag so you get the textContent of the target and if it equal “Machine is off” you change it to other text

it just another way but you already did great work and have a nice day :slight_smile:

Thanks @justsomeone . Appreciate the feedback. :slight_smile:

you welcome :slight_smile: