JavaScript on the Web has a lot of what we want in an educational coding environment. You can easily build…