Please check if... else if challange

Hi,

I downloaded the solo-learn app to help with my practise.
I was looking for an app I can use on my phone for short challenges whilst I’m at work.

Any way I had a challenge which I have typed out in code pen and I think it works OK but when i put into solo learn its not working and I get an error: SyntaxError: Unexpected end of input.

Challenge:
A store is offering a tiered discounts based on the purchase total.

5000 and above => 50%
3000-4999 => 30%
1000-2999 => 10%
1-999 => 0%

Write a program that takes the total price as input and outputs the corresponding discount to the console.

Sample Input
4700

Sample Output
30%

Does anyone know what this can refer to. Link here

Also… does any one have suggestions of free or low cost java script apps for my phone so i can practise whilst Im at work.

Sololearn is £45 for the year and i dont fancy paying.

Hello @Leanne_Smith

try to read that book while you on work and practice when you get back to home