Please enable JavaScript to use CodeHS

Fundamentals of Cybersecurity

Description

In this lesson, students will explore the language of computers, including programming languages, variables, and data types.

Objective

Students will be able to:

  • Identify different types of programming languages and their hierarchical structure
  • Demonstrate an understanding of how to use variables
  • Differentiate between various data types, including integers, floating points, Strings, and Booleans
Description

In this lesson, students learn how Karel the Dog can be given a set of instructions to perform a simple task. Additionally, students learn about functions, and how they can use functions to break down their programs into smaller pieces and make them easier to understand.

Objective
  • Write their first Karel program by typing out all of the Karel commands with proper syntax
  • Explain how giving commands to a computer is like giving commands to a dog
  • Create functions to teach Karel new commands
  • Explain the difference between defining and calling a function
Description

In this lesson, students learn how to use for loops and while loops in their programs. For loops allow Karel to repeat a specific part of code a fixed number of times, and while loops allow Karel to repeat a specific part of code while a certain condition is true. Additionally, while loops allow students to create general solutions to problems that will work on multiple Karel worlds, rather than just one.

Objective

Students will be able to:

  • Explain when a for loop should be a used and when a while loop should be used
  • Create for loops to repeat code a fixed number of times
  • Create while loops to repeat code while a condition is true
  • Test their solutions on different Karel worlds
Description

In this lesson, students learn about an additional control structure, if/else statements. If/else statements let students do one thing if a condition is true, and something else otherwise.

Objective

Students will be able to:

  • Explain the purpose of an If/Else statement
  • Create If/Else statements to solve new types of problems
Description

In this lesson, students learn about lists/arrays and how to access an element in an array with an index so they can create ordered collections of items. Students also learn about another way to store data in JavaScript: objects. An object stores mappings from a key to a value.

Objective

Students will be able to:

  • Define an array
  • Create an array and access certain elements of an array by using an index
  • Define objects
  • Access a value in an object and add a key, value pair to an object
Description

In this lesson, students learn about the importance of planning when writing complex programs. Students learn that flowcharts and pseudocode are essential tools that help break down a problem. Students also learn how to use comments in JavaScript as a way to make their code more readable.

Objective

Students will be able to:

  • Explain the role of pseudocode and flow charts in writing complex programs
  • Explain how adding comments make a program clearer and more readable
Description

In this lesson, students review content with a 15 question Unit Quiz.

Objective

Students will be able to:

  • Demonstrate their understanding of foundational programming concepts