Khan Academy: JavaScript Latest Update Graded A+
Khan Academy: JavaScript Latest Update Graded A+ Circle ellipse(x, y, w, h); Rectangle rect(x, y, w, h); "If" statement if (these statements are met) {run this command} Line line(x1, y1, x2, y2); Draw function draw = function() {what to draw}; Color fill(r, g, b); Outline Color stroke(r, g, b); No outline noStroke(); Background Color background(r, g, b); horizontal What direction is the x axis? horizontal or vertical? vertical What direction is the y axis? horizontal or vertical? x,y,w,h What are the 4 factors for a rectangle in JavaScript? Separate by commas. top Where should the "background" be located? top, middle or bottom? 400 How many pixels are there on a vertical and horizontal line from top to bottom on the javaScript screen? // Use to write a comment in your code ; (semicolon) Ends a line of code correct
Document information
- Uploaded on
- May 1, 2024
- Number of pages
- 5
- Written in
- 2023/2024
- Type
- Exam (elaborations)
- Contains
- Questions & answers