You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classProgrammer{
#languages;constructor(name,languages){this.name=name;this.#languages =languages;}
#knownLanguages(){return`expert in the following languages: ${this.#languages.join(", ")}`;}showLanguages(){returnthis.#knownLanguages();}}classSimonextendsProgrammer{constructor(name,languages,occupation,location){super(name,languages);this.occupation=occupation;this.location=location;}introduce(){console.log(`Hi, I'm ${this.name}. I'm a ${this.occupation} living in ${this.location} and I am ${this.showLanguages()}.`);}codeIn(frameworks){console.log(`${this.name} is coding in the following frameworks: ${frameworks.join(', ')}.`);}}constbbsimon=newSimon('BB Simon',['JavaScript','TypeScript','Node.js','Ruby','Ruby on Rails','Express.js','React.js','Next.js'],'Software Engineer','Cairo, Egypt');bbsimon.introduce();bbsimon.codeIn(['React.js','Next.js','Express.js','Rails']);