sign in

stay sharp. 4 min a day.

you used to know this stuff. let's keep it that way.

  • 4 min
  • 5 questions
  • 60s each
  • 🔥 streaks
today.drop

what does this print?

line 1: const ids = [10, 1, 3]
line 2: ids.sort()
line 3: console.log(ids)
  • 1[1, 3, 10]
  • ✓[1, 10, 3]
  • 3[10, 3, 1]
  • 4TypeError

sort() compares strings.

core

your level

changelog

what changed

repo

your code

share it

unprompted #160 · 4/5 · 🔥23
core      ■■■
changelog ■□
SF #18

18 themes

beat your city

  1. 1ada2,363
  2. 2linus2,308
  3. 3you2,209