Please enable JavaScript to use CodeHS

GA 6-8: CSS.KC.6-8.20.7

CodeHS Lessons

Create a program that accepts user and/or sensor input and stores the result in a variable.

Standard
3.3 User Input
3.4 Basic Math
6.2 If/Else Statements
6.3 Logical Operators
6.4 Comparison Operators
6.6 While Loops
6.7 The Break Statement
9.1 Functions Challenges
Standard
3.3 User Input
3.5 String Operators
5.3 Comparison Operators
5.4 Logical Operators
5.5 Floating Point Numbers and Rounding
7.1 While Loops
7.2 For Loops
7.3 Break and Continue
9.1 Functions
9.2 Functions and Parameters
9.3 Namespaces in Functions
9.4 Functions and Return Values
9.5 Exceptions
10.1 Indexing
10.2 Slicing
10.4 Strings and For Loops
10.5 The in Keyword
10.6 String Methods
12.2 Lists
12.3 For Loops and Lists
12.4 List Methods
13.3 Packing and Unpacking
13.4 Dictionaries
Standard
33.1 Indexing
33.2 Slicing
33.4 Strings and For Loops
33.5 The in Keyword
33.6 String Methods
Standard
9.3 User Input
9.4 Basic Math in JavaScript
9.6 Logical Operators
9.7 Comparison Operators
9.8 If Statements
9.10 For Loop Practice
9.12 While Loops
9.13 Loop and a Half
9.16 Functions and Return Values 1
9.17 Functions and Return Values 2
Standard
22.2 Logical Operators
22.3 Comparison Operators
22.4 If Statements
22.7 For Loop Practice
22.9 While Loops
22.10 Loop and a Half
Standard
2.3 User Input
2.4 Basic Math
5.2 If/Else Statements
5.3 Logical Operators
5.4 Comparison Operators
5.6 While Loops
5.7 The Break Statement
8.1 Functions Challenges
Standard
3.3 User Input
3.4 Basic Math
6.2 If/Else Statements
6.3 Logical Operators
6.4 Comparison Operators
6.6 While Loops
6.7 The Break Statement
9.1 Functions Challenges
Standard
3.3 User Input
3.4 Basic Math
6.2 If/Else Statements
6.3 Logical Operators
6.4 Comparison Operators
6.6 While Loops
6.7 The Break Statement
9.1 Functions Challenges
Standard
3.1 TouchableHighlight and the onPress Function
Standard
3.1 TouchableHighlight and the onPress Function
Standard
3.4 Under the Sea
8.8 Mouse Data
8.9 Keyboard Data
Standard
4.4 Under the Sea
Standard
4.8 Mouse Data
4.9 Keyboard Data
Standard
5.5 User Input
5.6 Parameters
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
5.5 User Input
5.6 Parameters
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
3.2 Mouse Data
3.3 Keyboard Data
Standard
4.4 If/Else Statements
Standard
13.12 User Input
13.13 Parameters
13.16 If Statements
13.17 If/ Else Statements
13.18 While Loops
13.19 Putting Together Control Structures
Standard
3.12 User Input
3.13 Parameters
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
3.3 User Input
3.4 Basic Math in JavaScript
6.12 User Input
6.13 Parameters
6.16 If Statements
6.17 If/ Else Statements
6.18 While Loops
6.19 Putting Together Control Structures
Standard
7.5 String Operators
7.8 Comparison Operators
7.9 Logical Operators
7.11 For Loops
7.12 Break and Continue
7.14 Functions
7.16 Namespaces in Functions
7.15 Functions and Parameters
7.17 Functions and Return Values
7.18 Exceptions
Standard
6.2 Lists
6.3 For Loops and Lists
6.4 List Methods
6.6 Dictionaries
Standard
8.1 Mad Libs
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
2.3 User Input
2.5 String Operators
4.3 Comparison Operators
4.4 Logical Operators
4.5 Floating Point Numbers and Rounding
5.1 While Loops
5.2 For Loops
5.3 Break and Continue
6.1 Functions
6.2 Functions and Parameters
6.3 Namespaces in Functions
6.4 Functions and Return Values
6.5 Exceptions
7.1 Loops
7.2 If/Else Statements
7.3 Arithmetic, Comparison, and Logical Operators
7.4 Functions
7.5 Using Motors
8.1 Indexing
8.2 Slicing
8.4 Strings and For Loops
8.5 The in Keyword
8.6 String Methods
9.2 Lists
9.3 For Loops and Lists
9.4 List Methods
10.3 Packing and Unpacking
10.4 Dictionaries
10.5 Equivalence vs. Identity
12.1 Arduino Challenges
Standard
3.3 User Input
3.4 Basic Math in JavaScript
6.2 Logical Operators
6.3 Comparison Operators
6.4 If Statements
6.7 For Loop Practice
6.9 While Loops
6.10 Loop and a Half
8.4 Functions and Return Values 1
8.5 Functions and Return Values 2
9.1 Functions Challenges
10.1 Loops
10.2 If/Else Statements
10.3 Arithmetic, Comparison, and Logical Operators
10.4 Functions
10.5 Using Motors
14.1 Arduino Challenges
Standard
4.2 User Input
4.3 Parameters
6.1 If Statements
6.2 If/ Else Statements
6.3 While Loops
7.3 Operators
7.4 If/Else Statements
8.1 Putting Together Control Structures
9.1 micro:bit Challenges
Standard
7.3 Operators
7.4 If/Else Statements
10.1 micro:bit Challenges
Standard
2.3 Operators
2.4 If/Else Statements
3.1 micro:bit Challenges
Standard
2.1 Loops
2.2 If/Else Statements
2.3 Arithmetic, Comparison, and Logical Operators
2.4 Functions
2.5 Using Motors
3.1 Arduino Challenges
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
2.3 User Input
5.10 Writing BlackJack
5.11 Battleship
8.1 Mad Libs
7.1 Pokemon Simulation
Standard
12.1 Mad Libs
11.1 Pokemon Simulation
Standard
3.3 User Input
3.4 Basic Math in JavaScript
5.2 Logical Operators
5.3 Comparison Operators
5.4 If Statements
5.7 For Loop Practice
5.9 While Loops
5.10 Loop and a Half
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
8.1 Functions Challenges
Standard
3.3 User Input
3.4 Basic Math in JavaScript
5.2 Logical Operators
5.3 Comparison Operators
5.4 If Statements
5.7 For Loop Practice
5.9 While Loops
5.10 Loop and a Half
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
8.1 Functions Challenges
Standard
3.3 User Input
3.4 Basic Math in JavaScript
5.2 Logical Operators
5.3 Comparison Operators
5.4 If Statements
5.7 For Loop Practice
5.9 While Loops
5.10 Loop and a Half
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
9.1 Functions Challenges
9.1 Functions Challenges
Standard
4.2 User Input
4.3 Parameters
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
2.12 User Input
2.13 Parameters
2.16 If Statements
2.17 If/ Else Statements
2.18 While Loops
2.19 Putting Together Control Structures
3.3 User Input
3.5 String Operators
4.3 Comparison Operators
4.4 Logical Operators
4.5 Floating Point Numbers and Rounding
5.1 While Loops
5.2 For Loops
5.3 Break and Continue
6.1 Functions
6.2 Functions and Parameters
6.3 Namespaces in Functions
6.4 Functions and Return Values
6.5 Exceptions
7.1 Indexing
7.2 Slicing
7.4 Strings and For Loops
7.5 The in Keyword
7.6 String Methods
8.2 Lists
8.3 For Loops and Lists
8.4 List Methods
9.3 Packing and Unpacking
9.4 Dictionaries
9.5 Equivalence vs. Identity
Standard
14.3 User Input
14.4 Basic Math in JavaScript
14.6 Logical Operators
14.7 Comparison Operators
14.8 If Statements
14.12 Functions and Return Values 1
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
6.4 User Input
6.5 Basic Math in JavaScript
8.2 Logical Operators
8.3 Comparison Operators
8.4 If Statements
8.7 For Loop Practice
8.9 While Loops
8.10 Loop and a Half
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
Standard
2.13 User Input
2.14 Parameters
2.18 If Statements
2.19 If/ Else Statements
2.20 While Loops
2.22 Putting Together Control Structures
5.3 User Input
5.5 String Operators
6.3 Comparison Operators
6.4 Logical Operators
6.5 Floating Point Numbers and Rounding
7.1 While Loops
7.2 For Loops
7.3 Break and Continue
8.1 Functions
8.2 Functions and Parameters
8.3 Namespaces in Functions
8.4 Functions and Return Values
8.5 Exceptions
9.1 Indexing
9.2 Slicing
9.4 Strings and For Loops
9.5 The in Keyword
9.6 String Methods
10.2 Lists
10.3 For Loops and Lists
10.4 List Methods
11.3 Packing and Unpacking
11.4 Dictionaries
11.5 Equivalence vs. Identity
Standard
6.3 User Input
6.4 Basic Math in JavaScript
8.2 Logical Operators
8.3 Comparison Operators
8.4 If Statements
8.7 For Loop Practice
8.9 While Loops
8.10 Loop and a Half
10.4 Functions and Return Values 1
10.5 Functions and Return Values 2
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
6.3 User Input
6.4 Basic Math in JavaScript
9.2 Logical Operators
9.3 Comparison Operators
9.4 If Statements
9.7 For Loop Practice
9.9 While Loops
9.10 Loop and a Half
11.4 Functions and Return Values 1
11.5 Functions and Return Values 2
Standard
3.12 User Input
3.13 Parameters
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
10.4 User Input
10.5 Basic Math in JavaScript
15.2 Logical Operators
15.3 Comparison Operators
15.4 If Statements
15.7 For Loop Practice
15.9 While Loops
15.10 Loop and a Half
Standard
5.3 User Input
5.4 Basic Math in JavaScript
14.2 Logical Operators
14.3 Comparison Operators
14.4 If Statements
14.7 For Loop Practice
14.9 While Loops
14.10 Loop and a Half
17.4 Functions and Return Values 1
17.5 Functions and Return Values 2
Standard
3.4 User Input
3.6 String Operators
4.3 Comparison Operators
4.4 Logical Operators
4.5 Floating Point Numbers and Rounding
5.1 While Loops
5.2 For Loops
5.3 Break and Continue
6.1 Functions
6.2 Functions and Parameters
6.3 Namespaces in Functions
6.4 Functions and Return Values
6.5 Exceptions
8.1 Indexing
8.2 Slicing
8.4 Strings and For Loops
8.5 The in Keyword
8.6 String Methods
9.2 Lists
9.3 For Loops and Lists
9.4 List Methods
12.2 Packing and Unpacking
12.3 Dictionaries
18.12 User Input
12.4 Equivalence vs. Identity
18.19 Putting Together Control Structures
18.18 While Loops
18.17 If/ Else Statements
18.16 If Statements
18.13 Parameters
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
9.3 Operators
9.4 If/Else Statements
10.1 micro:bit Challenges
Standard
2.3 User Input
2.4 Basic Math
4.2 If/Else Statements
4.3 Logical Operators
4.4 Comparison Operators
4.6 While Loops
4.7 The Break Statement
25.1 Functions Challenges
Standard
8.4 User Input
8.5 Basic Math in JavaScript
10.2 Logical Operators
10.3 Comparison Operators
10.4 If Statements
10.7 For Loop Practice
10.9 While Loops
10.10 Loop and a Half
12.4 Functions and Return Values 1
12.5 Functions and Return Values 2
13.1 Functions Challenges
Standard
4.3 User Input
4.4 Basic Math in JavaScript
6.2 Logical Operators
6.3 Comparison Operators
6.4 If Statements
6.7 For Loop Practice
6.9 While Loops
6.10 Loop and a Half
8.4 Functions and Return Values 1
8.5 Functions and Return Values 2
9.1 Functions Challenges
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
2.3 User Input
2.4 Basic Math in JavaScript
Standard
2.3 User Input
2.4 Basic Math in JavaScript
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
6.3 Operators
6.4 If/Else Statements
7.1 micro:bit Challenges
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
3.12 User Input
3.13 Parameters
3.16 If Statements
3.17 If/ Else Statements
3.18 While Loops
3.19 Putting Together Control Structures
Standard
3.13 User Input
3.14 Parameters
3.17 If Statements
3.18 If/ Else Statements
3.19 While Loops
3.20 Putting Together Control Structures
Standard
12.1 Pokemon Simulation
13.1 Mad Libs
Standard
3.3 User Input
3.4 Basic Math
7.2 If/Else Statements
7.3 Logical Operators
7.4 Comparison Operators
7.6 While Loops
7.7 The Break Statement
Standard
5.8 Mouse Data
5.9 Keyboard Data
Standard
4.3 User Input
4.4 Basic Math
6.2 If/Else Statements
6.3 Logical Operators
6.4 Comparison Operators
6.6 While Loops
6.7 The Break Statement
21.1 Functions Challenges
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
6.3 User Input
6.4 Basic Math in JavaScript
10.2 Logical Operators
10.3 Comparison Operators
10.4 If Statements
10.7 For Loop Practice
10.9 While Loops
10.10 Loop and a Half
24.4 Functions and Return Values 1
24.4 Functions and Return Values 1
24.5 Functions and Return Values 2
24.5 Functions and Return Values 2
Standard
5.3 User Input
5.4 Basic Math in JavaScript
6.2 Logical Operators
6.3 Comparison Operators
6.4 If Statements
6.7 For Loop Practice
6.9 While Loops
6.10 Loop and a Half
7.4 Functions and Return Values 1
7.5 Functions and Return Values 2
Standard
5.3 User Input
5.4 Basic Math
8.2 If/Else Statements
8.3 Logical Operators
8.4 Comparison Operators
8.6 While Loops
8.7 The Break Statement
Standard
4.3 User Input
4.4 Parameters
5.1 If Statements
5.2 If/ Else Statements
5.3 While Loops
6.1 Putting Together Control Structures
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
5.3 User Input
5.4 Basic Math in JavaScript
7.2 Logical Operators
7.3 Comparison Operators
7.4 If Statements
7.7 For Loop Practice
7.9 While Loops
7.10 Loop and a Half
9.4 Functions and Return Values 1
9.5 Functions and Return Values 2
Standard
1.12 User Input
1.13 Parameters
1.16 If Statements
1.17 If/ Else Statements
1.18 While Loops
1.19 Putting Together Control Structures
14.3 Operators
14.4 If/Else Statements
15.1 micro:bit Challenges
Standard
13.3 User Input
13.4 Basic Math in JavaScript
13.6 Logical Operators
13.7 Comparison Operators
13.8 If Statements
13.10 For Loop Practice
13.12 While Loops
13.13 Loop and a Half
13.16 Functions and Return Values 1
13.17 Functions and Return Values 2
Standard
5.8 Mouse Data
5.9 Keyboard Data
Standard
2.3 User Input
2.5 String Operators
4.3 Comparison Operators
4.4 Logical Operators
4.5 Floating Point Numbers and Rounding
6.1 While Loops
6.2 For Loops
6.3 Break and Continue
Standard
1.1 Functions
1.2 Functions and Parameters
1.3 Namespaces in Functions
1.4 Functions and Return Values
1.5 Exceptions
2.1 Indexing
2.2 Slicing
2.4 Strings and For Loops
2.5 The in Keyword
2.6 String Methods
4.2 Lists
4.3 For Loops and Lists
4.4 List Methods
5.3 Packing and Unpacking
5.4 Dictionaries
Standard
4.4 If/Else Statements
Standard
5.5 User Input
5.6 Parameters
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
5.5 User Input
5.6 Parameters
7.1 If Statements
7.2 If/Else Statements
7.4 While Loops
8.1 Putting Together Control Structures
Standard
2.3 User Input
2.5 String Operators
4.3 Comparison Operators
4.4 Logical Operators
4.5 Floating Point Numbers and Rounding
6.1 While Loops
6.2 For Loops
6.3 Break and Continue
9.1 Functions
9.2 Functions and Parameters
9.3 Namespaces in Functions
9.4 Functions and Return Values
9.5 Exceptions
10.1 Indexing
10.2 Slicing
10.4 Strings and For Loops
10.5 The in Keyword
10.6 String Methods
12.2 Lists
12.3 For Loops and Lists
12.4 List Methods
13.3 Packing and Unpacking
13.4 Dictionaries
Standard
2.3 User Input
2.5 String Operators
4.3 Comparison Operators
4.4 Logical Operators
4.5 Floating Point Numbers and Rounding
6.1 While Loops
6.2 For Loops
6.3 Break and Continue
Standard
1.1 Functions
1.2 Functions and Parameters
1.3 Namespaces in Functions
1.4 Functions and Return Values
1.5 Exceptions
2.1 Indexing
2.2 Slicing
2.4 Strings and For Loops
2.5 The in Keyword
2.6 String Methods
4.2 Lists
4.3 For Loops and Lists
4.4 List Methods
5.3 Packing and Unpacking
5.4 Dictionaries
Standard
8.3 User Input
8.4 Basic Math in JavaScript
8.6 Logical Operators
8.7 Comparison Operators
8.8 If Statements
8.10 For Loop Practice
8.12 While Loops
8.13 Loop and a Half
8.16 Functions and Return Values 1
8.17 Functions and Return Values 2
Standard
12.3 User Input
12.4 Basic Math in JavaScript
12.6 Logical Operators
12.7 Comparison Operators
12.8 If Statements
12.10 For Loop Practice
12.12 While Loops
12.13 Loop and a Half
12.16 Functions and Return Values 1
12.17 Functions and Return Values 2