scrimba
JavaScriptmas 2022
JavaScriptmas: 🥐 Favorite Foods
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

JavaScriptmas: 🥐 Favorite Foods
AboutCommentsNotes
JavaScriptmas: 🥐 Favorite Foods
Expand for more info
index.js
run
preview
console
/* Challenge 1: Favorite Foods
- Topic: Object Destructuring
1. Edit the faveFoods object so that it contains
your favorite foods.
2. Destructure the faveFoods object into three consts:
breakfast, lunch, and supper.
3. Fetch the meals <section> from the DOM.
4. Set the innerHTML content of the meals <section> to a paragraph
that states what your favorite foods are for breakfast, lunch, and supper.
Use a template literal to construct the string.
E.g.
For breakfast, I only like croissants 🥐. For lunch, I love pasta 🍝,
and for supper I want usually want pizza 🍕.
*/

const faveFoods = {
breakfast: '',
lunch: '',
supper: ''
}
Console
/index.html
-5:15