
CodeHS JavaScript
Authored by Greg Baker
Computers
8th - 12th Grade
Used 330+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
About
This quiz covers JavaScript programming fundamentals, focusing on syntax, operators, control structures, and basic web development concepts appropriate for grades 9-12. The questions assess students' understanding of core programming constructs including conditional statements (if/else), logical operators (&&, ||, !), arithmetic operators (++, --), loops (for, while), data types (boolean, string, integer), and JavaScript's role in web development. Students need to demonstrate knowledge of proper syntax conventions, including case sensitivity, operator precedence, and the distinction between assignment (=) and comparison (===) operators. The quiz also covers JavaScript-specific concepts such as coordinate systems for graphics, HTML integration through script tags, and the language's interpreted nature. Students must understand how conditions evaluate to boolean values, how loops iterate starting from zero, and how JavaScript provides interactivity within the web development ecosystem alongside HTML and CSS. Created by Greg Baker, a Computer Science teacher in the US who teaches grades 8-12. This quiz serves as an excellent formative assessment tool for students learning JavaScript programming fundamentals, allowing teachers to quickly gauge comprehension of essential syntax and concepts before advancing to more complex topics. The quiz works effectively as a warm-up activity at the beginning of class to reinforce previously taught material, or as homework to solidify understanding of JavaScript operators, control structures, and basic programming logic. Teachers can use this assessment to identify students who need additional support with fundamental concepts like operator precedence, loop construction, and conditional logic before progressing to functions, objects, or DOM manipulation. The content aligns with Computer Science standards including CSTA K-12 Computer Science Standards 3A-AP-13 (creating prototypes using programming constructs), 3A-AP-15 (using control structures), and 3A-AP-16 (designing programs using variables and expressions).
Content View
Student View
21 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
His name is Fred and he is less than 16 years old
if (name = "fred" && age < 16 )
if (name === "fred" && age < 16 )
if (name = "fred" || age < 16 )
if (name === "fred" || age < 16 )
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Repeat something 10 times
repeat 10
for (var i=0; i<10; i++)
repeat { } until 10;
while (i = 10)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the symbol used for the INCREMENT operator in JS?
+
++
=
==
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Conditions return values of which data type?
Integer
boolean
floating-point
string
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Loops in programming start counting from ?
0
1
Any number
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What symbol represents the or operator in JavaScript?
OR
or
||
|
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Arithmetic Operators
What is ++ ?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?