js/index.js
// 4. The API will call this function when the video player is ready.
4. The API will call this function when the video player is ready.
4 . The API will call this function when the video player is ready .
function onPlayerReady(event) {    playButton.addEventListener("click", function() {
        player.playVideo();
    });
    pauseButton.addEventListener("click", function() {
        player.pauseVideo();
    });
      }
function onPlayerReady ( event ) { playButton . addEventListener ( "click" , function ( ) { player . playVideo ( ) ; } ) ; pauseButton . addEventListener ( "click" , function ( ) { player . pauseVideo ( ) ; } ) ; }
4.
4 .