first of all, you have to be constant like using querySelector or getElementById
the querySelector return the first descendant element of baseElement which matches the specified group of selectors. which means it works same or better then getElementById
also adding style :
you can set the display none in line 9 like in line 11 or the opposite the metter is been constant
https://github.com/GSG-G8/W2-MOAA-E-Commerce/blob/f28c10b4b1a5a907f07f5b50b0fba00966a47287/js/popup.js#L9-L11
first of all, you have to be constant like using querySelector or getElementById the querySelector return the first descendant element of baseElement which matches the specified group of selectors. which means it works same or better then getElementById also adding style : you can set the display none in line 9 like in line 11 or the opposite the metter is been constant