Use while-loops when you want to repeat something as long as a condition is true
Watch all the awesome CodeHS and teacher-led sessions from Karel Con 2021 hosted on Saturday, April 24th, 2021
1
5 Short Stack
Naming Functions: You can name your functions whatever you want, but you can't have spaces in the function name
Giving commands to a computer, which is what programming is all about, is just like giving commands to a dog
Remember that each open bracket { must match with a close bracket } function turnRight() { turnLeft(); turnLeft(); turnLeft(); } function turnAround() { turnLeft(); turnLeft Code instructions for Karel the Dog in JavaScript
Learn how to code with Karel the Dog—a fun, accessible, and visual introduction to text or block-based programming that teaches fundamental concepts like commands and
9
i can’t give a solution, but i think good advice in a position like this is to cut and paste your code into a document somewhere else and start from scratch without looking at the code you already wrote
That's how I made my very own homepage! You can
Overview Karel starts at 1st street and 1st avenue next to a pile of tennis balls that will be at 1st street and 2nd avenue
CodeHS Karel's Built in Commands Functions Writing a function is like teaching karel a new word
//This program allows Karel to spin eight times
6: Right vs
While Loops while CONDITION: # Code that will
Standards Framework View Alignment; Code instructions for Karel the Dog in JavaScript
Writing a function is like teaching karel a new word
Naming Functions: You can name your functions whatever you want, but you can't have spaces in the function name
Exercise Mosaic Tiles
In each world, Karel will start in the center and have only one option to move out one ring
4 Your First Karel Program \n
1
4
4 The Two Towers + Comments \n
Click on one of our programs below to get started coding in the sandbox! CodeHS Karel Quiz DRAFT
Edit
Students progress at their own pace and you see a leaderboard and live results
Assignments
Explore This Example! Code instructions for Karel the Dog in JavaScript
Platform
2 Karel Can't Turn Right Quiz
Exercise 4
2 Karel Can't Turn Right Quiz
Exercise 4
00 Sale price Unit price / per
*/
Computer Science Curriculum Karel Test: Part 2
Students meet Karel and learn the fundamentals of writing a program by giving Karel commands to complete simple tasks
Naming Functions: You can name your functions whatever you want, but you can't have spaces in the function name
2
Student Signup