Which instruction defines a block of code that can be called and run as needed?

JavaScript Review 1125

Flashcard
•
Computers
•
9th - 12th Grade
•
Hard
Quizizz Content
FREE Resource
Student preview

4 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
function draw() {
2.
FLASHCARD QUESTION
Front
Which conditional statement tests whether the x coordinate has a value higher than 400?
Back
if (x > 400) {
3.
FLASHCARD QUESTION
Front
You are writing JavaScript code to draw a rectangle on the canvas. You write the following code:
ctx.beginPath();
ctx.rect(0,210,480,110);
ctx.fillStyle = "#136d15";
ctx.fill();
The rectangle is not drawn. Which instruction did you forget to include?
Back
ctx.closePath();
4.
FLASHCARD QUESTION
Front
Why do we write functions?
Back
To make our code easier to understand, avoid writing repeated code, and make our code reusable.
Similar Resources on Quizizz
5 questions
Pasha Flashcard Computing

Flashcard
•
11th - 12th Grade
10 questions
AutoCAD Array

Flashcard
•
9th - 12th Grade
10 questions
AP Computer Science Principles - Unit 3: App Design

Flashcard
•
9th - 12th Grade
3 questions
CMU CS Academy Unit 2 Functions

Flashcard
•
9th Grade
11 questions
Intro to Python Unit 6: Test Review

Flashcard
•
9th - 12th Grade
10 questions
Exit Ticket Ch 15 Instructional Technology

Flashcard
•
9th - 12th Grade
10 questions
Exit Ticket Ch 15 Instructional Technology

Flashcard
•
9th - 12th Grade
8 questions
AWSUG VLC Flashcard!

Flashcard
•
KG - University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University