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

Challenge: Your First Object
AboutCommentsNotes
Challenge: Your First Object
Expand for more info
index.js
run
preview
console
// Challenge: 
// 1. Create three variables - bar, cafe, restaurant - and set their values to a bar, a cafe and a restaurant in your city
// 2. Create an object - favouritePlaces - and populate it with your variables from task 1
// 3. If you're not already using the object property shorthand, refactor your code to do so
// 4. Create a method on the object - greeting() - that logs out a message to the console
// 5. Invoke the greeting() method and also log out your favourite restaurant to the console

Console
/index.html
-3:10