Removed Redundant Code: Combined similar operations and eliminated unnecessary variables.
Improved Readability: Used template literals and concise conditionals for clarity.
Optimized jQuery Selectors: Cached jQuery selections in variables to reduce DOM queries.
Efficient Event Handling: Used .off('click') to prevent multiple event bindings on images.
Consistent Styling: Streamlined CSS changes within the setBulb function.
Removed Redundant Code: Combined similar operations and eliminated unnecessary variables. Improved Readability: Used template literals and concise conditionals for clarity. Optimized jQuery Selectors: Cached jQuery selections in variables to reduce DOM queries. Efficient Event Handling: Used .off('click') to prevent multiple event bindings on images. Consistent Styling: Streamlined CSS changes within the setBulb function.