If the code does not work when uploaded to the CPX, you may have to use a code editor and REPL to figure out what's going wrong.
This is a common process in programming known as "troubleshooting" or "debugging".
A code editor and REPL will help you determine which part of your code may be causing errors.
Follow directions on how to download a code editor and troubleshoot issues with the REPL here.
Text editor powered by tinymce.