Javascript say "document" is not defined : I have a book studing javascript but brackets say's: document is not defined.
In this code:

`var btnMenu = document.getElementById('btn-menu');
var nav = document.getElementById('nav');

btnMenu.addEventListener('click'), function(){
  nav.classList.toggle('show');
})`

I dont know what is wrong, can you help me?
