Outdated terminal?

Just playing around, testing things out and the terminal throws an error when I do this. When I do it on the browser console though, it’s fine. What’s going on?

class Employee {
  position = 'senior';

  constructor(name) {
    this.name = name;
    this.age = 28;

const technician = new Employee('ben');


I can’t replicate the error using your code in my browser console or terminal. By convention, the constructor is supposed to be the first element in a class, but other than that, it works fine.

What error are you receiving?

My recommendation would be to move the position declaration into your constructor, since it’s always the same anyways.

For sure. What could’ve been the error though? Is this a later syntax than the editor is configured with?

Outside my level of expertise, but yes, it does seem to be an issue with the Codecademy runtime.