Please enable JavaScript to use CodeHS

AP Computer Science Principles in JavaScript

Lesson 5.7 JavaScript vs Karel

Description

In this lesson, students will take a look behind the scenes of Karel. While they are familiar with the basic commands, this lesson explores details about how Karel’s API is created. Students will gain a better understanding of APIs while at the same time, applying graphics and function concepts.


Objective

Students will be able to:

  • Understand how an API abstracts away detail for a program such as Karel
  • Use functions and event-driven programming to create a simple API