Undefined Variable Declaration


#1

Hello, I have the code: const queue = new Map();

But Map is undefed. Can anyone help?


#2

It’ll just be a linter warning. So long as the code is valid, it will still work.

You can specify global variables at the top of your file to make this warning go away - see https://eslint.org/docs/user-guide/configuring#specifying-globals