JavaScript 101

An introduction to JavaScript for intermediate or advanced coders in upper middle or high school with a focus on game design.

  • GRADES 7+
  • ADVANCED
  • WEB

Answer Key

Module 3: Set Sail

Module 4: Smooth Sailing

Module 5: Turn Right

Module 6: Treasure Ahoy!

Module 7: Turn Right, Turn Left

Module 9: Turn! Turn! Turn!

Module 10: Buggy Code

Module 12: More Bugs?

Module 13: Complete the Path

Module 16: Quiz

1.

2.

3.

4.

5.

6.

7.

8.

9.

10.

11.

12.

13.

14.

15.

16.

17.

18.

19.

20.

21.

Lesson 1: The Basics

Course: | Web

  • Introduction to JavaScript
  • Video
  • Set Sail
  • Smooth Sailing
  • Turn Right
  • Treasure Ahoy!
  • Turn Right, Turn Left
  • What Are Comments?
  • Turn! Turn! Turn!
  • Buggy Code
  • What Are Naming Conventions?
  • More Bugs?
  • Complete the Path
  • Light It Up!
  • Review
  • Quiz

Lesson 1 : The Basics
JavaScript 101

Time: 40+ minutes

Introduction

Commands Introduced

Vocabulary

Objectives

Materials

Warm-Up (5 minutes)

Activities (35 minutes)

Facilitate as students complete all The Basics modules on their own:

1. Welcome (Document)
2. Video (Video)
3. Set Sail (Puzzle)
4. Smooth Sailing (Puzzle)
5. Turn Right (Puzzle)
6. Treasure Ahoy! (Puzzle)
7. Turn Right, Turn Left (Puzzle)
8. What are Comments? (Document)
9. Turn. Turn. Turn. (Puzzle)
10. Buggy Code (Puzzle)
11. What are Naming Conventions? (Document)
12. More Bugs? (Puzzle)
13. Complete the Path (Puzzle)
14. Light it Up! (DIY)
15. Review (Document)
16. Quiz (Multiple Choice)

Discussion Questions/Follow-Up Activities (20 minutes)

U.S. Standards

  • CCSS-ELA: SL.7.1, SL.8.1, RI.9-10.3, RI.9-10.6, L.9-10.3, L.9-10.6
  • CCSS-Math: HSN.Q.A.1, HSN.Q.A.2, HSN.Q.A.3, MP.1
  • CSTA: 2-AP-13, 2-AP-17, 3A-AP-17, 3A-AP-19, 3B-AP-11, 3B-AP-12
  • CS CA: 6-8.AP.13, 6-8.AP.17, 9-12.AP.12, 9-12.AP.14, 9-12.AP.16
  • ISTE: 1.c, 1.d, 4.d, 5.c, 5.d

U.K. Standards

Key stage 3
Pupils should be taught to:
  • design, use and evaluate computational abstractions that model the state and behaviour of real-world problems and physical systems
  • understand several key algorithms that reflect computational thinking [for example, ones for sorting and searching]; use logical reasoning to compare the utility of alternative algorithms for the same problem
  • undertake creative projects that involve selecting, using, and combining multiple applications, preferably across a range of devices, to achieve challenging goals, including collecting and analysing data and meeting the needs of known users
  • create, reuse, revise and repurpose digital artefacts for a given audience, with attention to trustworthiness, design and usability
  • understand a range of ways to use technology safely, respectfully, responsibly and securely, including protecting their online identity and privacy; recognise inappropriate content, contact and conduct, and know how to report concerns
Key stage 4
All pupils must have the opportunity to study aspects of information technology and computer science at sufficient depth to allow them to progress to higher levels of study or to a professional career. Pupils should be taught to:
  • develop their capability, creativity and knowledge in computer science, digital media and information technology
  • develop and apply their analytic, problem-solving, design, and computational thinking skills
  • understand how changes in technology affect safety, including new ways to protect their online privacy and identity, and how to report a range of concerns