How do I make a function start using addEventListener?

  • 0
    I need to make sure that when the read button is pressed, the value of the inputs that are in the same div block is displayed using addEventListener. Here is the code
    JavaScript Anonymous, May 9, 2019

  • 1 Answers
  • 0
    Well, something like that.

    кнопка.addEventListener('click', function() {
    const переменная = инпут.value
    блокКудаХочешьВставитТекст.textContent = переменная

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!