Intro+to+Javascript+Programming

=Introduction to Javascript Programming using Karel the Dog= This lesson can be used to introduce students to coding. Javascript is a web programming language used to create interactive elements within your web browser. Programming are essentially the combination of mathematical and logical concepts.

Grade Level: 9-12

= The purpose of this lesson =

is to introduce students to the web programming language called Javascript and to the field of Computer Science. Coding can inspire students to be creative and to develop problem solving skills. Once this lesson is completed, it is hoped that students will be inspired to learn more about Javascript programming and will want to learn how to create programs that do more complex and cool things.

Lesson Objectives:

 * Students will know the difference between a static HTML web page and a dynamic web page that has been programmed with Javascript
 * Students will know some basic Javascript syntax
 * Students will be able to apply their knowledge of what programming is and how things like Commands, Procedures and Loops work.

**Vocabulary**

 * dynamic
 * static
 * commands
 * procedures
 * loops

=
==============================================================================================================

Activity
Take some time to review the web page, **What is Computer Science?**

media type="youtube" key="WWZokAMvftI" width="560" height="315"

**Karel the Dog**

 * CodeHS** is a company that creates programs to introduce programming and computer science principles. Built for beginners, students learn to program by watching videos to teach the content and then practicing programming in the browser.

Karel the Dog is a introduction to computer science, designed to demystify "code" and show that anyone can learn the basics to be a maker, a creator, an innovator. According to the CodeHS website, Karel is a dog that only knows how to move, turn left, and place tennis balls in his world. You can give Karel these commands to instruct him to do certain things.

In this first tutorial, students learn how to program Karel to move through a variety of obstacles in a game-like world. Students will learn that they must be precise in their coding and that they have to tell Karel every step and turn that he must make because a computer never infers the next step.

To start the lesson, instruct students to click the link below to Karel the dog, or type in the following link:

http://goo.gl/co40JZ


 * **Karel the Dog** - Javascript tutorial


 * Create an account at CodeHS
 * Once you are signed up, you will view the first video in the CodeHS tutorial and you can get started right away!
 * This lesson allows you to work at your own pace through short videos, example code, and fun programming exercises that will introduce you to programming with Karel the dog.
 * If you have questions, please ask!
 * I will be walking around the classroom to help and monitor your progress.

Want to learn more about coding?
There are many computer classes offered here at Winchester High School. You can learn
 * Web Design
 * Robotics
 * computer animation
 * game development
 * mobile app development
 * Computer Science Programming
 * AP Computer Science

Check out the online course of studies booklet at the Winchester High School web site.

Resources

 * Computer Science Ed Week (csedweek.org)
 * Code.org Check out this sites Tutorial partners including: Scratch, Alice, Khan Academy, Tynker, MinecraftEdu, and more
 * More Hour of Code Tutorials
 * MIT's AppInventor Hour of Code Tutorial (Create Android Apps)
 * Make Games With Us (Create iPhone Apps)