Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.56 KB

File metadata and controls

43 lines (34 loc) · 1.56 KB

JavaScript Collection Basic

Business Requirement:

  • section-1, compare and filter items from two arrays - 4 practices included
  • section-2, group and count items in an array - 3 practices included
  • section-3, compare, filter and count items in two arrays - 4 practices included

Practice Challenges:

  • Use loop and condition statements
  • Initiate an array
  • Append element into an array
  • Access element in an array
  • Access object properties
  • Create JavaScript object
  • Modify object's properties
  • Fetch specific part of String

Practice Requirements:

  • Pass all tests
  • No high order functions
  • No regular expressions
  • Commit frequently with readable comment via Git
  • Coding with keyboard shortcuts

Practice Output:

You can find requirement detail in the test code comments under spec\section-n directory. And you should put your code in the directory main.

For example, the production code of spec/section-1/practice-1-spec.js should be put into main/section-1/practice-1.js.

And then you should run corrresponding practice-[number]-run.html to validate whether your implementations are right or not.

Environment

A Brower like Chrome

How to begin:

  • Fork this repo
  • Clone forked repo from your github

Learning Resource

  1. JavaScript Basics
  2. JavaScript Code Camp
  3. Jasmine Tutorial
  4. Git Reference