Skip to content

Commit

Permalink
Reorder example outputs (#2799)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanKaplanSES authored Jun 29, 2024
1 parent 2245adc commit 6d27b07
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const a = { duration: 50 };

a.duration ??= 10;
console.log(a.duration);
// Expected output: 50

a.speed ??= 25;
console.log(a.speed);
// Expected output: 25

a.duration ??= 10;
console.log(a.duration);
// Expected output: 50

0 comments on commit 6d27b07

Please sign in to comment.