Skip to content

Blake lower #686

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
20 changes: 19 additions & 1 deletion assignments/lambda-classes.js
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
// CODE here for your Lambda Classes
class Lambda{
constructor (attributes){
this.instructor = attributes.instructor;
this.students = attributes.students;
this.projectManagers = attributes.projectManagers;
}
}
const webeu5 = new Lambda({
instructor: 'Remi',
students: 'webeu5',
projectManagers: 'Matt Locklin',
});
let webeu6 = new Lambda({
instructor: 'Petar',
students: 'webeu6',
projectManagers: 'Debra',
});
console.log(webeu4);
console.log(webeu6);
20 changes: 20 additions & 0 deletions assignments/prototype-refactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,23 @@ Prototype Refactor
2. Your goal is to refactor all of this code to use ES6 Classes. The console.log() statements should still return what is expected of them.

*/
function LambdaPersonnel(attributes){
this.instructor = attributes.instructor;
this.students = attributes.students;
this.projectManagers = attributes.projectManagers;
}
LambdaPersonnel.prototype.learn = function(){
return `${this.instructor}: teaches Javascript, ${this.students}`;
}
function Kids(attributes) {
LambdaPersonnel.call(this, attributes);
}
Kids.prototype = Object.create(LambdaPersonnel.prototype);

const webeu4 = new LambdaPersonnel({
instructor: 'Remi',
students: 'webeu4',
projectManagers: 'Matt Locklin',
});

console.log(webeu4);