The missing semi-colon error is likely not in the code provided, but rather in code that comes before or after it. Check the surrounding code for any missing semi-colons.
If you're still having trouble finding the error, try running your code through a linter or syntax checker to identify any issues.
// Example of running code through a linter using ESLint
// Install ESLint: npm install eslint --save-dev
// Create a .eslintrc.json file in your project root with your desired configuration
// Run ESLint: npx eslint yourfile.js
// Example of running code through a syntax checker using Node.js
// Run: node -c yourfile.js