About 12,800,000 results
Open links in new tab
  1. [JavaScript Homework] Creating a Caterpillar on CodeHS

    Nov 3, 2015 · A caterpillar has NUM_CIRCLES circles. Every other circle is a different color, the even circles are red, and the odd circles are green (by even we mean when i is an even number). Use a for loop to draw the caterpillar, centered vertically in the screen.

  2. [FREE] Hi, I need help with creating a code in CodeHS with the ...

    Oct 24, 2023 · To draw a caterpillar using JavaScript in CodeHS, you'll need to use the canvas API. Start by defining a variable for the number of circles, NUM_CIRCLES . Next, set up your drawing environment by accessing the canvas and getting its 2D rendering context.

  3. I need help with this code. : r/learnprogramming - Reddit

    Oct 1, 2019 · I'm working on an assignment: codeHS 5.5.6 Caterpillar. My code doesn't seem to work and i don't know why, can anyone help? This is my code: // This graphics program should draw a caterpillar. A caterpillar has NUM_CIRCLES // circles. Every other circle is a different color, the even circles ar red, and // the odd circles are green.

  4. The Caterpillar - CodeHS

    Write, run, & debug code all in a web-based IDE. Integrations. Connect CodeHS to your district’s educational platform. Platform . Assignments. Create & configure your course assignments. Classroom. Manage & organize your class with customizable settings. Grading. ... JavaScript. Python 3. HTML.

  5. Code examples and answers for the CodeHS Computer ... - GitHub

    Two scripts, automate.js and browser.js are used to automate the process of copying code from CodeHS to this repository. Keep in mind Node.JS is required to run these! browser.js is designed to be ran in the browser, and spits out a JSON object for use with automate.js .

  6. 5.5.6 Javascript Caterpillar : codehs - redditmedia.com

    It sounds like you may have an infinite loop in your code. Check out this article for debugging tips: https://help.codehs.com/en/articles/4454484-for-students-fixing-code-that-crashes-the-browser. If you're still running into issues, we recommend reaching out to your teacher :)

  7. codehsanswers/5.6.6 Colorful Caterpillar at main · Blueman411 ... - GitHub

    A collection of codehs answers for the tracy unut. Contribute to Blueman411/codehsanswers development by creating an account on GitHub.

  8. Codehs 4.3.4 Answers - Answers for 2023 Exams

    Exercise 4.3.4: Colorful Caterpillar points Write a program that draws a ... A few small code examples to help you get through the String manipulation of Nitro 4.3. The most common answer is: penup () setposition (-175,0) pendown () def pineapple (color_choice): begin_fill () color (color_choice) circle (25) ...

  9. CodeHS JavaScript Control Structures :) Flashcards - Quizlet

    5.5.6 Caterpillar var NUM_CIRCLES = 15; var yHalf = getHeight()/2; var radius = getWidth()/NUM_CIRCLES/2; var xLocation = radius; function start(){ for(var i = 0; i < 15; i++) { var circle = new Circle(radius); circle.setPosition(xLocation,yHalf); if (i % 2 == 0) { circle.setColor(Color.red); } else { circle.setColor(Color.green); } add(circle ...

  10. Introduction to Computer Science in JavaScript (Corgi) - Outline

    Write, run, & debug code all in a web-based IDE. Integrations. Connect CodeHS to your district’s educational platform. Curriculum . ... Exercise 6.10.8 Caterpillar. Badge 6.10.9 Looper Badge. 6.11 Javascript Control Structures Quiz; Unit Quiz 6.11.1 JavaScript Control Structures Quiz. Control Structures Challenges; 7.1 Control Structures ...

  11. Some results have been removed
Refresh