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 -

My apologies here is how they taught it in the lessons

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

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