
Type real patterns. Learn as you go.
JS
const nums = [1, 2, 3, 4, 5];
const result = nums
.filter(n => n % 2 === 0)
.map(n => n * 2);
console.log(result); // [4, 8]
Daily Snippet
TS
Pick a language
Collections
Leaderboard

Type real patterns. Learn as you go.