Add descriptions to JavaScript Conditional Operators, BigInt Operators, and Break Continue statements (#2003)

This commit is contained in:
Marco Buontempo authored and GitHub committed 2022-10-02 15:20:08 +04:00
1 parent a0201d1856
commit 2b0e39391e
3 files changed
+18 -3

No files matched your search

@@ -1 +1,7 @@
# Break continue
# Break Continue
The `break` and `continue` statements are used to "jump out" of a loop. When executed, the `break` statement will terminate the loop entirely; Whereas `continue` will terminate only the current iteration, and continue execution of the loop's next iteration.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/break'>break</BadgeLink>
<BadgeLink colorScheme='blue' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/continue'>continue</BadgeLink>
@@ -1 +1,5 @@
# Bigint operators
# BigInt Operators
Most operators that can be used with the `Number` data type will also work with `BigInt` values (e.g. arithmetic, comparison, etc.). However, the unsigned right shift `>>>` operator is an exception and is not supported. Similarly, some operators may have slight differences in behaviour (for example, division with `BigInt` will round towards zero).
<BadgeLink colorScheme='blue' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#bigint_operators'>BigInt Operators</BadgeLink>
@@ -1 +1,6 @@
# Conditional operators
# Conditional Operators
The conditional operator (or "ternary" operator) is a shorthand `if...else` statement. The syntax is: `condition ? expression1 : expression2;`. That is, the operator will execute `expression1` if the condition is `truthy`, and otherwise `expression2` if the condition is `falsy`.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Read' href='https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#conditional_ternary_operator'>Conditional Operator</BadgeLink>