From d6bad55e6daa78f8d4d8ea1c93611611bad101f3 Mon Sep 17 00:00:00 2001 From: Azar <79351619+azr-arch@users.noreply.github.com> Date: Thu, 23 Feb 2023 23:07:50 +0530 Subject: [PATCH] fix(curriculum): remove grammatical mistakes (#49426) fixes #49408 fixes the grammar of sentence 'will call the sum function, ....'. so it is clear who is doing the calling. --- .../basic-javascript/assignment-with-a-returned-value.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.md b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.md index a8344f88a42..a825bdf453a 100644 --- a/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.md +++ b/curriculum/challenges/english/02-javascript-algorithms-and-data-structures/basic-javascript/assignment-with-a-returned-value.md @@ -11,13 +11,13 @@ dashedName: assignment-with-a-returned-value If you'll recall from our discussion about Storing Values with the Assignment Operator, everything to the right of the equal sign is resolved before the value is assigned. This means we can take the return value of a function and assign it to a variable. -Assume we have pre-defined a function `sum` which adds two numbers together, then: +Assume we have defined a function `sum` which adds two numbers together. ```js ourSum = sum(5, 12); ``` -will call the `sum` function, which returns a value of `17` and assigns it to the `ourSum` variable. +Calling the `sum` function with the arguments of `5` and `12` produces a return value of `17`. This return value is assigned to the `ourSum` variable. # --instructions--