
[AP CSP] JavaScript Programming Lesson 2025-2026
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Medium
Tommy Nguyen
Used 34+ times
FREE Resource
18 Slides • 24 Questions
1
2
👉 HTML creates the structure of a website
👉 JavaScript gives motion and logic to a website
👉 CSS gives style to the website
3
6
Open Ended
Provide 1 - 2 Syntax Rules you noticed in JavaScript Code.
How does is it different/similar to Python Code?
7
8
9
10
11
13
Multiple Choice
Which JavaScript code correctly gets a user’s age, converts it to a number, and prints how old they will be next year?
14
Multiple Choice
Which JavaScript conditional statement correctly assigns a grade of "A" when score is 90 or higher?
15
Multiple Choice
Which JavaScript statement correctly adds a new item to the end of an array called items?
16
Multiple Choice
Which for loop correctly prompts the user for steps on Day 1 through Day 5?
17
Multiple Choice
Which line of code correctly calls the function and stores its returned value?
18
Multiple Choice
Which line of code correctly calls the function and stores its returned value?
Only ONE version below will run correctly without a scope error.
19
20
Analyze the code and predict its behavior.
✍️Annotate the code with comments 📝predicting each line’s role.
21
Multiple Choice
View the HTML & JavaScript code for the webpage.
Which line creates the input box for the web-page, what allows the user to type in the temperature?
Line 16
in the
HTML Script
Line 50
in the
HTML Script
Line 4
in the
JavaScript Code
Line 7
in the
JavaScript Code
22
Multiple Choice
View the HTML & JavaScript code for the webpage.
Which lines create the convert to: drop-down menu on the web-page for the 3 temperature options?
Lines 21 - 26
in the
HTML Script
Lines 29 - 34
in the
HTML Script
Lines 4 - 5
in the
JavaScript Code
Lines 9 - 20
in the
CSS Code
23
Multiple Choice
View the Image for JavaScript code for the webpage.
Which line of code Retrieves the value from the user input box in HTML, and stores the value into a Variable?
Line 7
Line 9
Line 11
Line 13
Line 4
24
Multiple Choice
View the JavaScript code for the webpage.
Which line of code Retrieves the value from the user Dropdown Selection (Convert From) in HTML, and stores the value into a Variable?
Line 2
Line 7
Line 9
Line 11
Line 13
25
Multiple Choice
View the JavaScript code for the webpage.
Which line of code Retrieves the value from the user Dropdown Selection (Convert To) in HTML, and stores the value into a Variable?
Line 4
Line 7
Line 9
Line 11
Line 38
26
Multiple Choice
View the JavaScript code for the webpage.
Which line executes the equation to convert from Fahrenheit to Kelvins?
Line 9
Line 21
Line 32
Line 15
27
Multiple Choice
View the JavaScript code for the webpage.
Which line of code displays the resulting converted temperature to the HTML Web Page?
Line 9
Line 11
Line 13
Line 36
Line 38
28
Multiple Choice
View the HTML & JavaScript code for the webpage.
Interact with webpage.
Which line contains the element where the output of emojis pictures display?
Line 46
in the
HTML Script
Line 47
in the
HTML Script
Line 37
in the
JavaScript Code
Line 39
in the
JavaScript Code
29
Multiple Choice
In Python, we use the function int() to convert a string data type to integer data type.
In JavaScript, we use the _____________ function to perform the same conversion.
getElementById()
convertINT()
Integer()
30
Dropdown
Complete the JavaScript Code below that would obtain the value from the input box and store it in a variable.
temp_value = document.
31
Dropdown
Complete the JavaScript Code below that would OUTPUT the convertedTemp onto the Webpage Element.
33
Choose 1 of these Conversion Apps to CREATE
Currency Converter
Distance Converter
Data Units Converter
Dollars (USD)
Euros (EUR)
Yens (JPY)
Meters (m)
Miles (mi)
Inches (in)
Bits (b)
MegaBytes (Mb)
ExoBytes (Eb)
34
Open Ended
Describe 1-2 Programming Challenges 🧐 we encountered while modifying the Conversion Application using HTML and JavaScript.
36
Open Ended
https://new-sandbox-program-3-13476603.codehs.me/index.html
☝️Click Link above to access the
Number Guessing Web Game.
List ALL the HTML Elements you see present on the webpage.
37
Multiple Select
https://new-sandbox-program-3-13476603.codehs.me/index.html
☝️Click Link above to access the
Number Guessing Web Game.
How does the user interact with the webpage to play the game?
Typing in the Text Boxes
Choosing an option in the Dropdown Menu
Clicking Buttons
Click Images on the Webpage
Pressing ENTER on the Keyboard
38
Open Ended
https://fuzwbrusdd-2302514603-sukjfypgvx-t.codehs.me/index.html
☝️Click Link above to access the
Rock Paper Scissors Lizard Spock Web Game.
List ALL the HTML Elements you see present on the webpage.
39
Multiple Choice
https://fuzwbrusdd-2302514603-sukjfypgvx-t.codehs.me/index.html
☝️Click Link above to access the
Rock Paper Scissors Lizard Spock Web Game.
How does the user interact with the webpage to play the game?
Clicking on Buttons
Click on the Images
Typing on the Keyboard
Click and Dragging Images
40
Multiple Select
https://fuzwbrusdd-2302514603-sukjfypgvx-t.codehs.me/index.html
☝️Click Link above to access the
Rock Paper Scissors Lizard Spock Web Game.
When the Rock Button is clicked, what happens on the webpage?
A SAME Image always shows on the LEFT cell above the word YOU
1 of 5 Random Image shows on the RIGHT Cell above the word CPU
The Text Box below the Image Updates with a NEW String
1 of 5 Random Image shows on the LEFT Cell above the word YOU
The Text Box for the SCORE Updates with a NEW String.
Show answer
Auto Play
Slide 1 / 42
SLIDE
Popular Resources on Wayground
10 questions
5.P.1.3 Distance/Time Graphs
Quiz
•
5th Grade
10 questions
Fire Drill
Quiz
•
2nd - 5th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
15 questions
Hargrett House Quiz: Community & Service
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade