1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-01 21:32:35 +02:00

feat: add js comma operator content (#1829)

This commit is contained in:
Aroyan
2022-09-22 14:34:10 +08:00
committed by GitHub
parent 1c234236f5
commit 8eced490ba

View File

@@ -1 +1,7 @@
# Comma operators
# 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.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Comma_Operator'>Comma operator</BadgeLink>