Skip to content

Refactor script.js to use modern ES6 syntax #1

Open
pravintargaryen wants to merge 1 commit intojulianprester:masterfrom
pravintargaryen:master
Open

Refactor script.js to use modern ES6 syntax #1
pravintargaryen wants to merge 1 commit intojulianprester:masterfrom
pravintargaryen:master

Conversation

@pravintargaryen
Copy link

Description
This PR updates script.js to follow modern JavaScript best practices:

  • Replaces var with let and const for better scoping.

  • Uses arrow functions where applicable.

  • Improves readability and structure by modularizing related functions.

Changes Made
✅ Refactored var → let / const
✅ Used arrow functions where applicable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant