HCDD 411 · Penn State University · Md Touhidul Islam
var keyword (older style)let keyword (modern, recommended)const for constants — cannot be reassignedmyVar ≠ myvar$, _if, for, etc.)Creates a new array with only the elements that pass a test
filter() runs a function on each item. If the function returns true, the item is kept. If false, it's removed. The original array is never modified.
true or false