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

pull/2007/head
Marco Buontempo 2 years ago committed by GitHub
parent a0201d1856
commit 2b0e39391e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      content/roadmaps/106-javascript/content/106-javascript-loops-iterations/102-break-continue/readme.md
  2. 6
      content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/105-bigint-operators.md
  3. 7
      content/roadmaps/106-javascript/content/108-javascript-expressions-and-operators/107-conditional-operators.md

@ -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>

Loading…
Cancel
Save