When the user clicks on the like button I want to show a notification above "Mijn verhalen" to let the user know it liked a certain thing. I don't know what's wrong because there are no errors in my JavaScript. But the notification doesn't show up...
This is the JavaScript code:
var een =
  document.getElementsByClassName('like');
var popup =
  document.getElementsByClassName('toevoegen');
een.addEventListener('click', function() {
  popup.classList.toggle('toevoegen');
});img.toevoegen {
  position: absolute;
  right: 5em;
  top: 4em;
  width: 10em;
}<button class="like"></button>
<img class="toevoegen" src="images/een.png"> 
     
    