Skip to content

JavaScript II - #486

Open
goonerfari wants to merge 10 commits into
bloominstituteoftechnology:masterfrom
goonerfari:master
Open

JavaScript II#486
goonerfari wants to merge 10 commits into
bloominstituteoftechnology:masterfrom
goonerfari:master

Conversation

@goonerfari

Copy link
Copy Markdown

mvp but one objective

@TheBrockstar TheBrockstar left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Objectives

With some basic JavaScript principles in hand, we can now expand our skills out even further by exploring callback functions, array methods, and closure. Finish each task in order as the concepts build on one another.

MVP

Task 1: Set Up The Project With Git

  • Fork the project into your GitHub user account
  • Clone the forked project into a directory on your machine
  • You are now ready to build this project with your preferred IDE
  • To test your console.log() statements, open up the index.html file found in the assignments folder and use the developer tools to view the console.

Task 2: Callbacks

  • Review the contents of the callbacks.js file. Notice you are given an array at the top of the page. Use that array to aid you with your callback functions.
  • Write out each function using the ES5 function keyword syntax.
  • Solve the problems listed. Save the stretch problems until you have completed Tasks 1-4.

Task 3: Array Methods

  • Review the contents of the array-methods.js file.
  • Complete the problems provided to you
  • Notice the last three problems are up to you to create and solve. This is an awesome opportunity for you to push your critical thinking about array methods, have fun with it.

Task 4: Closures

  • Review the contents of the closure.js file.
  • Solve the problems listed. Save the stretch problems until you have completed Tasks 1-4.
  • Once you have completed this task please submit a pull request against the original fork.

Stretch

  • Various Stretch Problems

Great

Alex, this looks great! I'm not sure if I would have done any of this differently. Everything was done by the book.

Requests for Improvement

  • More detailed commits.
  • Make sure that you finish MVP!

Commits

Your commits look a lot better! One improvement would be to elaborate on vague directions like clean-up code, with a commit body like I showed during standup. Let me know if you'd like me to show you how to do that.

Rating: 3

return company_list.company_name;
});
console.log(`The biggest donor are employees of the following company: ${largeDonorCompanyList}.`);
// Problem 3 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.

MVP required three problems to solve for this challenge. What blocked you from writing a third?

console.log(ticketPriceTotal);

// ==== Challenge 5: Be Creative ====
// Now that you have used .forEach(), .map(), .filter(), and .reduce(). I want you to think of potential problems you could solve given the data set and the 5k fun run theme. Try to create and then solve 3 unique problems using one or many of the array methods listed above.

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 is a great opportunity to practice using helpful comments. Your comments here could have told me, or any future user, what problems you decided to solve. This is a valuable skill as it makes your code readable for future developers (and for any manager/supervisor/Team Lead whose job it is to review your code).

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