Still having the issue with redefinition and read-only errors in student code.
Student has a variable defined as location and another defined length. We received errors and had to change the names of the variables because code.org uses the same names of variables in their own code.
Sorry you are having these issues! length and location are words used by the javaScript language, which is what appLab is. If students use these as variable or function names it can cause issues. If you changed those variable names and are still having issues, can you share a link to the project so we can look closer? To share, don’t copy the url, click the share button in the left top banner and then copy link to project.
Hi Lindsey, I had my student change her variable names and everything worked perfectly. I’ve been teaching this since 2017 and never had this issue until now. I’m guessing my students have never named the variables with names that code.org and JavaScript uses.
Also, I’m a little excited but apprehensive about all the changes with AP and the changes to the code AI curriculum and using solely Python. I’m in the process now of learning more about Python to be ready for next school year . Thanks for your help!