scrimba
Frontend Career Path
Essential JavaScript concepts
Cookie Consent
Close the modal
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
Close the modal
Expand for more info
index.js
run
preview
console
/*
Challenge:
1. Take control of the close button.
2. Use an event listener to set the display
property of the modal to 'none' when the
close button is clicked.
*/

const modal = document.getElementById('modal')

setTimeout(function(){
modal.style.display = 'inline'
}, 1500)
Console
/index.html
-2:33