Tell us what’s happening:
I am not able to know how I can define my document in this challenge as well as sudoku solver challenge. Can anyone help me to figure out this??
Your code so far
var selector = document.querySelector('#locale select');
^
ReferenceError: document is not defined
at Object. (/home/runner/boilerplate-project-american-british-english-translator-4/components/translator.js:6:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Module._compile (/home/runner/boilerplate-project-american-british-english-translator-4/node_modules/pirates/lib/index.js:99:24)
at Module._extensions…js (internal/modules/cjs/loader.js:789:10)
at Object.newLoader [as .js] (/home/runner/boilerplate-project-american-british-english-trans
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36
.
Challenge: American British Translator
Link to the challenge: