From 8eced490ba2726278fe808283ffc9b027b10aca3 Mon Sep 17 00:00:00 2001 From: Aroyan <43630681+aroyan@users.noreply.github.com> Date: Thu, 22 Sep 2022 14:34:10 +0800 Subject: [PATCH] feat: add js comma operator content (#1829) --- .../108-comma-operators.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/108-comma-operators.md b/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/108-comma-operators.md index 3c11d6fb4..cef7550f5 100644 --- a/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/108-comma-operators.md +++ b/content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/108-comma-operators.md @@ -1 +1,7 @@ -# Comma operators \ No newline at end of file +# Comma operators + +The comma operator (`,`) evaluates each of its operands (from left to right) and returns the value of the last operand. This lets you create a compound expression in which multiple expressions are evaluated, with the compound expression's final value being the value of the rightmost of its member expressions. This is commonly used to provide multiple parameters to a `for` loop. + +Free Content + +Comma operator