Javascript Review CodeHS 3.1-3.5

Worksheet by Tia Draffen
Javascript Review
CodeHS 3.1-3.5 worksheet preview image
Subjects
Arts
Grades
10 , 11 , 12 , 9
Language
ENG
Assignments
24 classrooms used this worksheet

Vocabulary Review Match the correct term with its definition println JavaScript function that prints out a line to the user Boolean A true or false value Variable A symbol or container that holds a value Integer A whole number (not a fraction) Float A numeric value that can have decimal level precision (ex: 3.14) readLine Allows for the reading of user input when a string is used readInt Allows for the reading of user input when an integer is used getWidth() JavaScript function that returns the width of the graphics canvas getHeight() JavaScript function that returns the height of the graphics canvas Radius The length between the center and edge of a circle Why is it useful for a program to be able to output messages to the user? In the right column, show how the output will look different between the following two programs. function start(){ println("Hello World"); } Hello World function start(){ println("Hello "); println("World"); } HelloWorld How would you create a variable named myDog and give it the value “Karel”? Why is it useful for programs to be able to perform mathematical computations? Describe some programs, apps, or websites you use that you think are performing mathematical computations? What is the program, app, or website able to do for you because it is carrying out mathematical computations? What are the coordinates for the top left corner of the canvas? 0,0 0,100 100,100 100,0 What are the coordinates for the center of the canvas? 0,0 getWidth() getHeight() getWidth(),getHeight() x,y Many programs generate graphics. What are some programs, apps, or websites that you use that create graphics? What is challenging about creating graphics in programming?

Use This Worksheet