Javascript – Unable to use property of youtube player after importing into another module
I created a class of youtube api because I need it in multiple files but when I trying to access the getPlayerState() then its giving me error of that it is not a function but when I console.log I see…