Put in order · JavaScript and TypeScript course · Module 3: Classes and OOP

Class Method Syntax

Arrange the elements of an ES6 class method:

Items to put in order

  • roar()
  • {
  • }
  • return 'ROAR!'

You can check the correct answer by solving this task in the CodeWorlds game.