Audioplayer

Joined
Jun 14, 2018
Messages
101
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

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top