From d453de6fdac0b235f7f321a5f32592817baec58b Mon Sep 17 00:00:00 2001 From: SilentDeath53 <48599339+SilentDeath53@users.noreply.github.com> Date: Tue, 10 Feb 2026 12:23:49 +0300 Subject: [PATCH] fix(curriculum): misleading explanation of compound assignment operators (#65751) Co-authored-by: SilentDeath53 --- .../673271b4213033d9b661c70e.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-operator-behavior/673271b4213033d9b661c70e.md b/curriculum/challenges/english/blocks/lecture-working-with-operator-behavior/673271b4213033d9b661c70e.md index 59bd9e5e9bb..621b9510467 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-operator-behavior/673271b4213033d9b661c70e.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-operator-behavior/673271b4213033d9b661c70e.md @@ -7,7 +7,7 @@ dashedName: what-are-compound-assignment-operators-in-javascript-and-how-do-they # --interactive-- -In JavaScript, all arithmetic operators have a compound assignment form. Compound assignment operators allow you to perform a mathematical operation and reassign the result back to the variable in one line of code. Instead of writing something like this: +In JavaScript, all arithmetic operators have a compound assignment form. Compound assignment operators provide a concise shorthand for an operation on a variable followed by storing the result in that same variable. They combine the operation and assignment into a shorter form like `x += y`, which is equivalent to writing `x = x + y` but without repeating the variable name. Instead of writing something like this: :::interactive_editor @@ -126,7 +126,7 @@ Think about how to combine mathematical operations and reassignment. --- -Perform a mathematical operation and reassign the result to the variable in one line of code. +Provide a shorter way to perform an operation on a variable and assign the result back to that same variable. ---