scrimba
Frontend Career Path
Essential JavaScript concepts
Meme Picker
Aside: .includes()
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

AboutCommentsNotes
Aside: .includes()
Expand for more info
index.js
run
preview
console
const emojis = ['🐥','🐯','🐼']

// const addItemBtn = document.getElementById('add-item-btn')
// const itemInput = document.getElementById('item-input')
// const list = document.getElementById('list')

// const shoppingList = []

// addItemBtn.addEventListener('click', function(){
// shoppingList.push(itemInput.value)
// render()
// itemInput.value = ''
// })

// function render(){
// let html = ''
// for (let item of shoppingList){
// html+= `<li class="list-item">${item}</li>`
// }
// list.innerHTML = html
// }

// render()

Console
/index.html
-5:52