Karel Basics
JavaScript Syntax
Html
JavaScript Basics
Flow Control
100

This basic command makes Karel move forward one square.


What is move();?

100

This symbol is used at the end of most JavaScript statements.

What is a semicolon (;)?

100
This tag defines a paragraph.
What is a 'p' tag?
100

Why does a programmer indent their code?

.

What is?? Any of the answers below are accepted.

  1. Helps show the structure of the code.

  2. More manageable for other people to understand.

  3. A key part of good programming style!

100
If this statement evaluates to false and an else clause exists, the statement associated with the else clause runs. If the test statement evaluates to true, the statement following the expression runs and the else clause is ignored.
What is an 'if statement'?
200

When Karel faces this direction at the start of a program.



What is East?

200
This tag defines an image in an HTML page.
What is a 'img' tag?
200

A reusable block of code that performs a specific task..

What is a function?

200
This is a control statement which allows code to be repeatedly executed. Unlike many other kinds of flow controls this one is often distinguished by an explicit loop counter or loop variable.
What is a 'for statement'?
300

This happens when Karel tries to move through a wall.



What is an error?

300

JavaScript requires you to use this keyword to declare a local variable.

What is var?

300
This tag defines a division or a section in an HTML document.
What is a 'div' tag?
300
This is the CSS selector that is used to identify a class.
What is a dot?
300
This flow control statement allows code to be executed repeatedly based on a given boolean condition. The condition is evaluated before the code is executed, and executes only if the condition is true.
What is a 'while statement'?
400

This is the result of calling turnLeft() four times.

 What is Karel's face in the same direction as before (makes a complete 360° turn)?

400
This is the language that your paging styling should use.
What is CSS?
400
This tag is used to group inline-elements in a document.
What is a 'span' tag?
400
This is the CSS selector that identifies an id.
What is a hash (#)?
400
This flow control statement allows code to be executed repeatedly based on a given boolean condition. The condition is evaluated after the code is executed once, and executes repeatedly until the condition is false.
What is a 'do-while statement'?
500

This command is not directly available in Karel but can be created using other commands.

 What is turnRight();?

500
This is the intrinsic type that all objects inherit from in JavaScript
What is Object?
500
This tag defines a hyperlink, which is used to link from one page to another.
What is an 'a' tag?
500
This is the meaning of the CSS acronym.
What is Cascading Style Sheet?
500
This flow control statement is used to allow the value of a variable or expression to change the control flow of program execution via a multiway branch.
What is a switch statement'?
M
e
n
u