Skip to content

Samarvir Singh - #295

Closed
samarv wants to merge 4 commits into
bloominstituteoftechnology:masterfrom
samarv:master
Closed

Samarvir Singh#295
samarv wants to merge 4 commits into
bloominstituteoftechnology:masterfrom
samarv:master

Conversation

@samarv

@samarv samarv commented Apr 20, 2018

Copy link
Copy Markdown

No description provided.

@mixelpixel

Copy link
Copy Markdown
Contributor

@samarv 👋

It's nice to see that you are committing frequently. You get a gold ⭐️ !!

Your git log tells the story of your development adventure. I'd ❤️ to know more about your 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:
screen shot 2018-04-12 at 5 32 06 am

...such that they will reveal the BODY:
screen shot 2018-04-12 at 5 32 20 am

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

😺

Comment thread ANSWERS.md
--Expicit binding - using methods like, call, apply and bind we can bind one thing to other.

5. Why do we need super() in an extended class?
super keyword is used to pass any new attributes back to constructor of the parent.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍👍 👍 👍 👍

Comment thread challenges/functions.js
function multiply(param1,param2){
return param1 * param2;
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 👍

Comment thread challenges/functions.js
console.log(consume(2,2,add)); // 4
console.log(consume(10,16,multiply)); // 160
console.log(consume("Mary","Poppins", greeting)); // Hello Mary Poppins, 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.

👍 👍 👍

Comment thread challenges/functions.js
// Question 1: Explain in your own words why the example below is a closure.

// Explanation:
//the example below is a closure because "internal" is not defined inside "nestedFunction" but we are still acessing it!

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.period = att.period;
}
}

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: '12m',
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.

👍

length: '9m',
period: ' Late Jurassic',
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

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

@JasonCorp84 JasonCorp84 Apr 20, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍 that is a lightweight Tyrannosaurus :)

return "RAWERSRARARWERSARARARRRR!";
}
console.log(tyrannosaurus.roar());

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

const universities = [];
const universities = graduates.map(item => item.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.

let's not forgot to sort the array by alphabet

const uniobj = graduates.filter(item => item.university.includes("Uni",0));
const uni = uniobj.map(item => item.university);
console.log(uni);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good, but how many universities contains "Uni"?

let lowerCase = [];
let lowerCase = zooAnimals.map(item => item.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.

👍

Comment thread challenges/prototypes.js
this.width = args.width;
this.height = args.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.

👍

Comment thread challenges/prototypes.js
}



Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread challenges/prototypes.js
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.

👍

Comment thread challenges/prototypes.js
// console.log(cuboid.surfaceArea()); // 130
console.log(cuboid.volume()); // 100
console.log(cuboid.surfaceArea()); // 130

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

Comment thread challenges/classes.js
});

console.log(cube.cubevolume()); // 100
console.log(cube.cubesurface()); // 130

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

Samar,

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

Clean and concise explanations. Good job! 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