Keep getting error @ basic JS

Keep getting error @ basic JS
0.0 0

#1

Original code: https://gyazo.com/498cd030b2c61126a014b86634e05c6a

After I edited the code: https://gyazo.com/022a46009538320db3e1372c96b8ecbd

I keep getting a weird “you should atleast have two else statements” error, it won’t let me pass. Did I do something wrong?


#2

You are missing a closing } at the end of the function.