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

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.


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.