Uncaught SyntaxError: Unexpected token ‘const’
/salaryData.js:1
What is the proper syntax for exporting an array instead of a class? Please help.
https://www.codecademy.com/workspaces/61f7b0164ad323964b6b957f
Uncaught SyntaxError: Unexpected token ‘const’
/salaryData.js:1
What is the proper syntax for exporting an array instead of a class? Please help.
https://www.codecademy.com/workspaces/61f7b0164ad323964b6b957f
I have figured it out. I wrote the export default inline with the const array instead of right at the bottom. I guess you can only write it this way if the variable was a class.