This basic command makes Karel move forward one square.
What is move();?
This symbol is used at the end of most JavaScript statements.
What is a semicolon (;)?
This keyword defines a new function in JavaScript.
What is a function?
This JavaScript statement is used to make decisions in code.
What is an if statement?
This type of loop is used when you know exactly how many times to repeat actions.
What is a for loop?
When Karel faces this direction at the start of a program.
What is East?
These symbols {} are used in JavaScript for this purpose.
What are curly braces (used to define code blocks)?
This command makes Karel place a tennis ball in its current position.
What is putBall();?
This condition checks if Karel's front is clear of walls.
What is frontIsClear()?
This loop continues as long as a specific condition remains true.
What is a while loop?
This happens when Karel tries to move through a wall.
What is an error?
This type of comment is created using /* and */ in JavaScript.
What is a multi-line comment?
This command allows Karel to pick up a tennis ball from the current position.
What is takeBall();?
This logical operator means "AND" in JavaScript conditions.
This is the correct syntax for a for loop that repeats 5 times.
What is for (var i = 0; i < 5; i++) { }?
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)?
This term describes the practice of indenting code inside curly braces.
What is proper code formatting/indentation?
This is a function you create yourself rather than using built-in commands.
What is a custom function/user-defined function?
This is the correct syntax for an if-else statement in JavaScript.
What is if (condition) { commands } else { other commands }?
When using this loop with Karel, you might create an infinite loop if you're not careful.
What is a while loop?
This command is not directly available in Karel but can be created using other commands.
What is turnRight();?
This error occurs when your JavaScript code has a syntax mistake.
What is a syntax error?
This is the correct way to define a " buildHouse " function containing multiple commands.
What is the function buildHouse() { [commands here] }?
This condition would check if Karel is facing East AND there's no wall to the right.
What is if (facingEast() && rightIsClear()) { }?
This code would make Karel move forward until it reaches a wall.
What is while (frontIsClear()) { move(); }?