Created
November 22, 2021 14:45
-
-
Save codetombomb/bac7543ac90b7ac4c7502db8b13739e2 to your computer and use it in GitHub Desktop.
! operator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const button = document.querySelector("button")!; | |
if(button){ | |
button.addEventListener('click', ()=>{ | |
console.log('clicked') | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment