My Video Player

My Video Player - student project

I added a like and dislike button.

 

Here's the code if you're interested and you can try to make it better than what I did:

html:

div>       

button id="like">đź‘Ťbutton>       

button id="dislike">đź‘Žbutton>     

div>

js:

const like = document.querySelector('#like')

const dislike = document.querySelector('#dislike')


like.addEventListener('click', function like() { 

this.style.border="2px red solid" 

dislike.style.display="none"})


dislike.addEventListener('click', function dislike() { 

this.style.border="2px red solid" 

like.style.display="none"})