diff --git a/src/components/PageHeader/RootPage.astro b/src/components/PageHeader/RootPage.astro index 16c61136e4..2ba914234c 100644 --- a/src/components/PageHeader/RootPage.astro +++ b/src/components/PageHeader/RootPage.astro @@ -12,7 +12,7 @@ const borderStyle = isFilterRoute ? "" : "border-b border-sidebar-type-color"; ---

{title}

{subtitle}

diff --git a/src/content/tutorials/en/conditionals-and-interactivity.mdx b/src/content/tutorials/en/conditionals-and-interactivity.mdx index 73766e6078..499f8a3724 100644 --- a/src/content/tutorials/en/conditionals-and-interactivity.mdx +++ b/src/content/tutorials/en/conditionals-and-interactivity.mdx @@ -524,7 +524,7 @@ function draw() {   fill("green"); -  rect(0, horizon, 400, 400); +  rect(0, horizon, 400, 200); } ``` diff --git a/src/content/tutorials/en/repeating-with-loops.mdx b/src/content/tutorials/en/repeating-with-loops.mdx index 18b05f2e3d..46f3ab0bbb 100644 --- a/src/content/tutorials/en/repeating-with-loops.mdx +++ b/src/content/tutorials/en/repeating-with-loops.mdx @@ -199,7 +199,7 @@ Above `setup()`: In `draw()`: - After the code that draws the finish line, declare a new local variable `x` to position all the body segments: `let x = circX;` -- Add a *for loop* using: `for (let i = 0; i < length; i += 1) { }` +- Add a *for loop* using: `for (let i = 0; i < segments; i += 1) { }` - A *for loop* will repeat the code we write inside the curly brackets multiple times.  - Move the lines of code that draw the `circle()` into the curly brackets of the *for loop*. - After the for loop, add: `circX += spacing`  @@ -936,7 +936,7 @@ function moveCaterpillars() {   for (let i = 0; i < numCaterpillars; i += 1) {     //Give each caterpillar a     //random speed. -    move = random(5, 30); +    let move = random(5, 30);     caterpillarEnds[i] += move; } } @@ -1001,7 +1001,7 @@ function moveCaterpillars() {   for (let i = 0; i < numCaterpillars; i += 1) {     //Give each caterpillar a     //random speed. -    move = random(5, 30); +    let move = random(5, 30);     // Update caterpillars' x-coordinates     caterpillarEnds[i] += move;