Skip to content

Sam Landsman#256

Closed
sam202020 wants to merge 5 commits intobloominstituteoftechnology:masterfrom
sam202020:master
Closed

Sam Landsman#256
sam202020 wants to merge 5 commits intobloominstituteoftechnology:masterfrom
sam202020:master

Conversation

@sam202020
Copy link
Copy Markdown

No description provided.


forEach` loops over each element in an array, but does not automatically create a new array; while map does create a new a array corresponsing to
each eelemnt

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

2. What is the difference between a function and a method?

a method refers to a function within an object (an object's functions).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

5. Why do we need super() in an extended class? No newline at end of file

a combination of a function and the lexical environment within which that function was declared.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


5. Why do we need super() in an extended class?

to cause a child class to inherit the properties and methods of its parent class. No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍 👍

@mixelpixel
Copy link
Copy Markdown
Contributor

@steve2020 👋

It's nice to see that you are committing frequently. You get a gold ⭐️ !! Glad to see you are getting comfortable with the Git and GitHub tools :octocat: 🎉

Looking ahead to the larger projects you'll be working on, I'd ❤️ to see your msgs conveying more information, more frequently. This habit will make you a better programmer! Any time you complete an assignment, a function, add a component, or try a new feature in your programs, if you make note of the updates by using Git commit messages, your Git history will tell the story of your software engineering adventure!

While the Git commit titles are short, you can add a "body" to the messages which can be much more detailed. BEFORE you add the closing quote to the commit message, hit enter twice to add a new line between the title and the body. For example:

$ git commit -m "This is a Git commit TITLE less than 72 characters

This is a Git commit BODY which can contain as much pertinent information and descriptions as you see fit. Some development teams like tons and tons of information, and depending on the scope of the commit, it may be necessary to make lots of detailed notes - especially in projects like React where there can be a vast amount of files and a complex project architecture.
- I did this.
- I did that.
- this happens.
- that needs work.
- this thing got refactored.
- where's my Lambda swag?????"

...on GitHub in the Pull Requests, the body will be accessible by clicking on the three little dots:

triple-dots

...such that they will reveal the BODY:

reveal

If you're not already in the #git channel in Slack, come check it out: https://lambdaschoolstudents.slack.com/archives/C5Z8BMX6K/p1523565197000063

😺

return `RAWERSRARARWERSARARARRRR!`;
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

length: '1.8m',
period: 'Late Cretaceious'
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

universities.push(graduates[i].university);
}

console.log(universities)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets not forgot to sort by alphabet

contactInfo[i] += ' ' + graduates[i].email;
}

console.log(contactInfo);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

uni.push(graduates[i].university);
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, but how many? :)


lowerCase = zooAnimals.map(animal => animal.animal_name.toLowerCase());

console.log(lowerCase);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

return accumulator + currentValue;
}, 0);

console.log(populationSum); No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

function greeting(fName, lName) {
return `Hello ${fName} ${lName}, nice to meet you!`;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

// Explanation: because we are calling a function on a variable outside the function in which the the variablw was declared.

// Question 2: Given the example below, what scope is the external variable in?
// global scope
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

*/

function CuboidMaker(props) {
this.length = props.length;
Copy link
Copy Markdown

@JasonCorp84 JasonCorp84 Apr 20, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

CuboidMaker.prototype.volume = function() {
return this.length * this.width * this.height;
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

CuboidMaker.prototype.surfaceArea = function() {
return 2 * (this.length * this.width + this.length * this.height + this.width * this.height);
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

width: 5,
height: 5
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

this.length = props.length;
this.width = props.width;
this.height = props.height;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

volume() {
return this.length * this.width * this.height;
}
surfaceArea() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

length: 4,
width: 5,
height: 5
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

width: 4,
height: 4
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@JasonCorp84
Copy link
Copy Markdown

Sam,

Self Study Questions

[x] Answered all

Challenges

[ x] Objects
[x ] Create 3 dinosaur objects
[ x] Test your objects using console logs
[ x] Create rawr method

[ x] Arrays
[ x] Part 1 - Complete all requests without using methods
[ x] Part 2 - Complete all requests using methods

[ x] Functions
[ x] Callbacks
[ x] Closure

[ x] Prototypes
[x ] Base Constructor
[ x] Volume Method
[ x] Surface Area Method
[ x] Create new object that uses CuboidMaker

[ x] Classes
[ x] Bring in prototype
[ x] Test using console logs
[ x] Extend base class with sub class

Good Habits

[ x] Pull Request title is your first and last name (add any notes in the comment field)
[ x] Code has been committed regularly
[ x] Commit comments are informative
[ x] Code is organized in a logical way

Great job on your assignment. I like your clean concise explanations and code.
Keep up the good work!
{3}

@mixelpixel mixelpixel closed this May 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants