Skip to content

Commit f0e99b6

Browse files
committed
Fix mistake in code/scripts.js
Issue marijnh#441
1 parent bb0ce66 commit f0e99b6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

05_higher_order.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,10 @@ function average(array) {
526526
527527
console.log(Math.round(average(
528528
SCRIPTS.filter(s => s.living).map(s => s.year))));
529-
// → 1185
529+
// → 1188
530530
console.log(Math.round(average(
531531
SCRIPTS.filter(s => !s.living).map(s => s.year))));
532-
// → 209
532+
// → 188
533533
```
534534

535535
So the dead scripts in Unicode are, on average, older than the living
@@ -550,7 +550,7 @@ for (let script of SCRIPTS) {
550550
}
551551
}
552552
console.log(Math.round(total / count));
553-
// → 1185
553+
// → 1188
554554
```
555555

556556
But it is harder to see what was being computed and how. And because

code/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ var SCRIPTS = [
326326
ranges: [[4352, 4608], [12334, 12336], [12593, 12687], [12800, 12831], [12896, 12927], [43360, 43389], [44032, 55204], [55216, 55239], [55243, 55292], [65440, 65471], [65474, 65480], [65482, 65488], [65490, 65496], [65498, 65501]],
327327
direction: "ltr",
328328
year: 1443,
329-
living: false,
329+
living: true,
330330
link: "https://en.wikipedia.org/wiki/Hangul"
331331
},
332332
{

0 commit comments

Comments
 (0)