Audioplayer

Joined
Jun 14, 2018
Messages
110
Reaction score
1
JavaScript:
i'm trying this js
getting error on line1 or 2 

Uncaught ReferenceError: Cannot access 'audio' before initialization

let audio = document.querySelector(audio);
let play_pause = document.querySelector('.play_pause'); {
  var icon = ('.f04b');
  function playAudio() {
  x.play(); {
     icon.toggleClass('active');
     return true;
  };
    };
};
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,073
Messages
2,570,539
Members
47,197
Latest member
NDTShavonn

Latest Threads

Top