Hi guys, I have a lot of question about the way that my background response to the specific icon range I have setup but someway it doesn’t get it, the site just get the default case which is the last else in my loop, could you guys take a look at my code to check if what’s wrong, Thank you guys so much.

Doing it with a better practice:

You got an integer data type, which “understands” numbers. Therefore, there is no need to convert it to a string and use Regex in your current situation. Instead, why not use a comparison operator such as greater than (>) or less than (<)?

Further reading:

Oh wow, thank you so much. Man this regex thing is really hard to master it. I though it was just simple that you just declare it in certain range such like my code [801 - 804] it will know exactly what to do.

Codepen.io works a bit differently than other editors. You should not include the <head> tag and its content inside your HTML panel and you should not include the <body> tag. Whatever inside your HTML panel is treated as if it’s inside your <body> tag.

Everything necessary inside your <head> should be moved to the settings option panel.
After doing that, the issue you’re experiencing should be resolved.