class Programmer {
#languages;
constructor(name, languages) {
this.name = name;
this.#languages = languages;
}
#knownLanguages() {
return `expert in the following languages: ${this.#languages.join(", ")}`;
}
showLanguages() {
return this.#knownLanguages();
}
}
class Simon extends Programmer {
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(', ')}.`);
}
}
const bbsimon = new Simon('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']);
Highlights
- Pro
Pinned Loading
-
JavaScript-All-You-Need-to-Know
JavaScript-All-You-Need-to-Know PublicA comprehensive guide to JavaScript, covering essential concepts, advanced topics, and problem-solving techniques. This repository includes in-depth resources for functional programming, object-ori…
JavaScript 4
-
Data-Structures-And-Algorithms-Implemented-In-Python
Data-Structures-And-Algorithms-Implemented-In-Python PublicImplement Queue, Stack, Linked-list, Tree and Binary Tree in Python
Python
-
Ruby-all-you-need-to-know
Ruby-all-you-need-to-know PublicRuby fundamentals and OOP and Problem solving with Ruby
Ruby 2
-
microinitiatives
microinitiatives PublicMicroinitiatives is micro-entrepreneurship community where entrepreneurs design, implement and share their initiatives, Built using React, Redux, Redux thunk, MUI, Styled-component, NodeJS, Express…
JavaScript
-
If the problem persists, check the GitHub status page or contact support.