Coder Social home page Coder Social logo

javascript-ii's Introduction

JavaScript - II

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.

Set Up The Project With Git

Follow these steps to set up and work on your project:

  • Create a forked copy of this project.
  • Add your project manager as collaborator on Github.
  • Clone your OWN version of the repository (Not Lambda's by mistake!).
  • Create a new branch: git checkout -b <firstName-lastName>.
  • Implement the project on your newly created <firstName-lastName> branch, committing changes regularly.
  • Push commits: git push origin <firstName-lastName>.

Follow these steps for completing your project.

  • Submit a Pull-Request to merge Branch into master (student's Repo). Please don't merge your own pull request
  • Add your project manager as a reviewer on the pull-request
  • Your project manager will count the project as complete by merging the branch back into master.

Task 2: Higher Order Functions and Callbacks

This task focuses on getting practice with higher order functions and callback functions by giving you an array of values and instructions on what to do with that array.

  • 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 functions.

  • Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.

Task 3: Array Methods

Use .forEach(), .map(), .filter(), and .reduce() to loop over an array with 50 objects in it. The array-methods.js file contains several challenges built around a fundraising 5K fun run event.

  • Review the contents of the array-methods.js file.

  • Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.

  • 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

We have learned that closures allow us to access values in scope that have already been invoked (lexical scope).

Hint: Utilize debugger statements in your code in combination with your developer tools to easily identify closure values.

  • Review the contents of the closure.js file.
  • Complete the problems provided to you but skip over stretch problems until you are complete with every other JS file first.

Stretch Goals

  • Go back through the stretch problems that you skipped over and complete as many as you can.
  • Look up what an IIFE is in JavaScript and experiment with them

javascript-ii's People

Contributors

bigknell avatar adamhoffma avatar mixelpixel avatar justsml avatar ericathompson avatar blevs avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.