
JavaScript drawing skills

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

3 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Consider the JavaScript code shown in the picture. If the code runs every 20 milliseconds, what is the effect on the arc that is drawn on the canvas?
Back
The arc moves vertically between y = 0 and y = 250.
2.
FLASHCARD QUESTION
Front
Consider the JavaScript code shown in the image. You expect the arc to move left to right on the canvas, but you find that it is moving up and down. How do you fix the code to create the movement effect you want? Options: replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(x, 400, 20, Math.PI *2, false);, replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(x, x, 20, Math.PI *2, false);, Set 'x += dx;' to 'x -= dx;' instead., replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(400, 50, x, Math.PI *2, false);
Back
replace ctx.arc(400, x, 20, Math.PI *2, false); with replace ctx.arc(x, 400, 20, Math.PI *2, false);
3.
FLASHCARD QUESTION
Front
Consider the JavaScript code shown in the image. You expect the arc to move, but it does not appear on the canvas. How do you fix the code?
Back
Change 'setInterval(draw, 20);' to 'setInterval(drawIt, 20);'
Similar Resources on Wayground
2 questions
4.11 Apply procedures for creating Additional drawing objects

Flashcard
•
9th Grade
8 questions
Spanish subject pronouns

Flashcard
•
12th Grade
10 questions
Arc Length Flashcard

Flashcard
•
9th - 10th Grade
7 questions
Test for Welding 1430

Flashcard
•
University
12 questions
Spanish Subject Pronouns

Flashcard
•
7th - 12th Grade
12 questions
Spanish Subject Pronouns

Flashcard
•
7th - 12th Grade
10 questions
Parts of a Circle

Flashcard
•
9th - 12th Grade
12 questions
Parts of a Circle(Arcs and Angles) Assignment

Flashcard
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade