You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove Duplicate Code for Repeated XMLHttpRequest Calls
Reduce Use of Global Variables
Replace var with const and let to avoid unintended bugs due to hoisting or scope.
Use Caching for DOM Element Lookups. Repeated use of document.getElementById() and jQuery lookups is inefficient.
Instead of constantly redrawing all aliens, only update and draw what has changed. Use a flag to track if positions or states have changed before redrawing.
Please review kubeinvaders.js and open me solvable issue to improve code
The text was updated successfully, but these errors were encountered: