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 Variable names should use camel case for multiple words, like "toothSize" instead of "toothsize" or "tooth_size". correct or incorrect? 5 var x = 5; What is the value of x? fill Command used to add color
Información del documento
- Subido en
- 1 de mayo de 2024
- Número de páginas
- 5
- Escrito en
- 2023/2024
- Tipo
- Examen
- Contiene
- Preguntas y respuestas