Lab PC-3A: Programming Concepts: JavaScript 1

Date open: See Oncourse Assignments
Date due: See Oncourse Assignments
Number of points: 30

This is part 1 of 2.

Learning Objectives

The tutorial will guide you as you apply the concepts of algorithms, learned in previous labs, to actual coding in JavaScript, enabling you to:

  1. Work with string (text), number, and boolean (true or false) data.
  2. Use variables (memories).
  3. Perform input and output.
  4. Use the if and if/else statements
  5. Define and use functions to extend the capabilities of the agent

Instructions

Go to Codecademy for the JavaScript tutorial.

  1. Sign up. You need to create an account and login to keep track of your progress. You can customize your profile, but you don’t have to.

  2. Log in.

  3. Click on “Start learning.” Select “JavaScript” as the language, then click on “Start.”

  4. Follow the instructions. For this assignment, we want you to complete the first four lessons:

    As you progress through the lessons, you will earn “badges”; we will want you to turn some of these in.

    The lessons are highly interactive and full of help; but if you get stuck, send us a message. In that case, you will probably need to copy and paste your code into the message, or else attach a screenshot of it, so we will know exactly what it is that you’re asking about.

    This will probably take longer than an hour, but you can log out and come back at any time.

  5. When you’ve finished, show us your badges:

Turning in This Assignment

Turn in the screenshot(s) showing your badges as attachments in Oncourse Assignments.

Grading Rubric

Partial credit will be earned for partial completion of each section.

Badge Points Percent
Getting Started with Programming 10 33 1/3
Choose Your Own Adventure! 5 16 1/6
Introduction to Functions in JS 10 33 1/3
Build “Rock, Paper, Scissors” 5 16 1/6
TOTAL 30 100