Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Explore students’ syntax errors to reveal their misconceptions.

Share Explore students’ syntax errors to reveal their misconceptions. with FacebookShare Explore students’ syntax errors to reveal their misconceptions. with Twitter
  • For instance, students may type books.title[i] instead of books[i].title
    • This is an error where they are trying to go through an array but instead are trying to remove an item from a non-thing.
    • It demonstrates that a student may not fully understand what can be indexed and what cannot.

More about this tip

Tags

  • Content Misconceptions
  • Development Methods
External Source

Interview with Pamela Fox

Other Tips By
Other Tips By Pamela Fox

Similar tips

Emphasize to students that in CSS id is typically more specific than class, as beginners often struggle to disambiguate these attributes.
Structure homeworks like code reviews to help students iterate on their code and learn the importance of readability.
Know and point out to students the limits of Khan Academy’s JavaScript environment, which does not allow some important topics (like variable scoping) to be demonstrated.
  • CSTT Facebook
  • CSTT Twitter

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Footer Icons by Mohammed Alyousfi. Powered by Drupal.

Privacy Policy

  • National Science Foundation
  • Sage Fox Group
  • Harvey Mudd College