To Whom It May Concern,
My name is Prakash and I’m new to JavaScript.
Summarize the problem.
- The goal of this program is to determine what a individuals astrological sign is.
- I believe my code could be more concise. But I’m fairly new to JavaScript.
- The syntax error states that the
document.getElementById()
is undefined and a 404 page doesn’t exist pops up.
Describe what you’ve tried.
- I changed the
document.getElementById()
to the.querySelector()
and.getElementByClassName
.
Code -