Javascript.info Chapter "Sets and ranges [...]" Task "Java[^script]" Solution

This is my solution for the task "Java%5B%5Escript%5D" in the Chapter "Sets and Ranges %5B...%5D".