From f96807641b4ef00d70e145409923082e7b4d43f0 Mon Sep 17 00:00:00 2001 From: Om Dhede <94121539+omdhede@users.noreply.github.com> Date: Mon, 30 Sep 2024 22:22:03 +0530 Subject: [PATCH] fix(curriculum): fixing syntax error in question code (#56363) --- .../learn-variables-and-operators-lesson-i.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/curriculum/challenges/english/16-the-odin-project/top-learn-variables-and-operators/learn-variables-and-operators-lesson-i.md b/curriculum/challenges/english/16-the-odin-project/top-learn-variables-and-operators/learn-variables-and-operators-lesson-i.md index 91fa23e6f70..334a55b4f99 100644 --- a/curriculum/challenges/english/16-the-odin-project/top-learn-variables-and-operators/learn-variables-and-operators-lesson-i.md +++ b/curriculum/challenges/english/16-the-odin-project/top-learn-variables-and-operators/learn-variables-and-operators-lesson-i.md @@ -83,19 +83,21 @@ console.log( counter++ ); // 0 ## --text-- -What is the difference in the result of the two console log statements in the JavaScript code below? +What are the outputs of the two `console.log` statements in the JavaScript code below? ```js let counter = 1; console.log(2 * ++counter); // Statement A +``` +```js let counter = 1; console.log(2 * counter++); // Statement B ``` ## --answers-- -There is no difference; both alert statements will show the same result. +There is no difference; both `console.log` statements will show the same result. ---