scrimba
JS Deep Dive
Objects & Maps
Challenge: Your First Map
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

To see this lesson you need to be logged in. Joining Scrimba is free and gives you access to 20+ courses.Sign up
Challenge: Your First Map
AboutCommentsNotes
Challenge: Your First Map
Expand for more info
index.js
run
preview
console
// Challenge: 
// 1. Take the object (contains a favourite place in Brighton, UK), and turn it into a Map
// 2. Add a boolean property 'visited', to indicate places that you've been to it
// 3. Add an integer property 'averageBill' with how much you spend there on average
// 4. Fetch one of the properties using the get() method

const favouritePlace = {
music: "jazz",
name: "Paris House"
};
Console
17.5
,
/index.html
-1:35