Classes Instance


#1

i cant figure out where i have gone wrong. help!!

class Surgeon {
  constructor(name, department) {
    this.name = name;
    this.department = department;
  }
}
const surgeonCurry= new Surgeon ('Curry, ', 'Cardiovascular');

#2

Did you mean,

'Curry',

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.