"IF - Else" statements in Java Script, not sure what I am doing wrong

"IF - Else" statements in Java Script, not sure what I am doing wrong
0.0 0

#1

I am kind of going over my head with this project, but i am working on my portfolio page and was trying to mess with the greeting statement when you first load the website. I want it to change according to what time of the day it. I found this code on google that uses “If Else” function but whenever i try to run it it gives me this error.

Screenshot_2
Screenshot_3


#2

Do you see red sign at the right bottom of the codepen page? It means something wrong with your code. In your case, it’s else in JS, not Else.