NEW
Font size
WorksheetsJavaScript Basics CodeHS
Total questions: 20
Worksheet time: 13mins
Which command is written correctly?
Move
move
Move();
move();
Which command is written incorrectly?
putBall();
putball();
turnLeft();
takeBall();
Is this Function written correctly?
True
False
What is the name of this function?
function
spin()
3 turnLeft();
spin();
What can be used to teach Karel to turn right?
Functions
Variables
Dog Treats
Karel can already turn right
This code:
putBall();
move();
putBall();
put 2 balls in the same place and then move one place?
True
False
Bonus Question: What is the web programming Trifecta?
HTML, CSS, Javascript
Java, C+, HTML
Java, HTML, CSS
Kobe, Labron, Jordan
What is the syntax to declare a function called doSomething?
function doSomething() { }
doSomething() function { }
function () doSomething { }
doSomething { } function ()
How many times does Karel move with this loop?
9
0
10
1
Why do we use if/else statements in JavaScript?
To repeat something for a fixed number of times
To either do something if a condition is true or do something else
To break out of some block of code
To repeat something while a condition is true
