About 13,900,000 results
Open links in new tab
  1. Square - CodeHS

    Click on one of our programs below to get started coding in the sandbox! Write a program that makes Tracy draw a square with sides of length 50. Tracy should end up back in the starting …

  2. CodeHS_Methods/3.3.5: Square at main · bwingdwing/CodeHS_Methods - GitHub

    public int square (int x) { return x * x; } _____________________________ /* This is the Scratchpad! This file is not graded, but you can use it to test your code. You can write and test …

  3. Can I get some help with this. : r/codehs - Reddit

    Feb 15, 2021 · So you need to make a function called square. function start(){ var x = square(5); println(x); } In the assignment, they give you this line of code broken down they give you the …

  4. What's the fastest way to square a number in JavaScript?

    What's the fastest way to square a number in JavaScript? function squareIt(number) { return Math.pow(number,2); } function squareIt(number) { return number * number; } Or some other …

  5. JavaScript - how to square a number in three easy ways

    May 23, 2021 · This article will show you the three easy ways to square a number using JavaScript. The three different ways you can square a number are as follows: Using the …

  6. CodeHS JavaScript Library

    CodeHS JavaScript Library. This is documentation for all JavaScript helpers used for Graphics, Console and Data Structures. Graphics. The Graphics module is used in all CodeHS …

  7. Can you help me understand the code for 6.8.6 Growing Squares in CodeHS?

    Apr 3, 2024 · The CodeHS 6.8.6 Growing Squares exercise involves writing code to create squares that increase in size using loops and drawing functions. Students often use JavaScript …

  8. 2.18.4 : Increasing Squares help : r/codehs - Reddit

    Dec 11, 2020 · Do you want the squares to be drawn like they are on the left? Either way, you should define draw_square (length) with the length var as an explicit argument - im not sure …

  9. Example: Circle in a Square - CodeHS

    var square = new Rectangle (side, side); square . setPosition ( getWidth ( ) / 2 - radius , getHeight ( ) / 2 - radius ) ; square . setColor ( Color . orange ) ;

  10. r/codehs on Reddit: Can somebody please help me figure out …

    Mar 8, 2021 · var square= new Rectangle(STARTING_SIZE, STARTING_SIZE); square.setPosition(0,(getHeight()-STARTING_SIZE)/2); …