Phaser super Keyoword

while trying to make a game and add different scenes, I tried to make scenes the way I was taught in the examples for multi scene lesson for Phaser. How ever when making a class and running my code I got this error from googles console

Uncaught SyntaxError: ‘super’ keyword unexpected here

Hi @micropro05983,

As you haven’t shared the code, a little search has brought me this stackover flow discussion that I guess could help you - https://stackoverflow.com/questions/39263358/super-keyword-unexpected-here

My apologies here is how they taught it in the lessons

class GameScene extends Phaser.Scene{
constructor(){
super({key: ‘GameScene’})
}
// code
}

while using this code in my game to create multiple scenes I got an error message