scrimba
JS Deep Dive
Arrays & Sets
Get Subsets of Arrays
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Get Subsets of Arrays
AboutCommentsNotes
Get Subsets of Arrays
Expand for more info
index.js
run
preview
console
const restaurants = [
{ name: 'Cap City Diner', milesAway: 2.2 },
{ name: 'Chop Shop', milesAway: 4.1 },
{ name: 'Northstar Cafe', milesAway: 0.9 },
{ name: 'City Tavern', milesAway: 0.5 },
{ name: 'Shake Shack', milesAway: 5.3 }
]
Console
index.html
-7:46