Skip to content

espressoGoddess/javascript-foundations

 
 

Repository files navigation

JavaScript Foundations

Each exercise emphasizes the fundamentals of object oriented programming in JavaScript.

Installation Steps

  1. Fork and clone this repo.
  2. Type cd javascript-foundations to move into the root directory
  3. Run npm install
  4. Test that the unit tests are working by running the command npm test mythical-creatures/test/unicorn-test.js in your terminal

You should see something like:

> [email protected] test /Users/robbie/turing/front-end/1mod/javascript-foundations
> mocha "mythical-creatures/test/unicorn-test.js"

  Unicorn
    - should be a function
    - should instantiate our good friend, Unicorn
    - should have a name
    - should have a color
    - should be white as default
    - should refute isWhite
    - should say sparklying stuff


  0 passing (6ms)
  7 pending
  1. Make sure you read each subdirectory's README carefully before starting to code!

Overview

There are lots of test suites in this repo! Our recommendation is to complete each Mythical Creature before the End of Module Assessment. After you've completed all of the creatures, start working through the other test suites listed below (in any order). We find that when students complete the same test suite over and over, memorization and pattern matching kick in (which is not what we want!). These test suites should be improving your problem solving skills. If you feel yourself being able to write code without reading the full test, it’s probably time for a new test suite. You can (and should) be strategic about how you use these - for example, you might use one of the repos for a mock final assessment with your mentor.

Completing all of these test suites is not necessary, but you should be working on this repo regularly. We see that students are the most successful when they establish a routine for working through these test suites. For example, you might work on them for 45 minutes every morning before class. Find a routine that works best for you and plan ahead so you remain on track to, at minimum, complete all of the mythical tests.

Greatest Hits

Other Greats

Skipped Tests

Most of the tests are skipped. When you see it.skip('should be a function', function () { in a test, it means that test has been skipped. They are skipped for a good reason - that way, when you run the test suite for the first time, you don't see tons of errors screaming at you in the terminal.

Unskip each test, one at a time in order, so you can concentrate on making one test pass. Unskip the test by deleting the .skip from the test's first line so it should look more like it('should be a function', function () {. Run the test to see what kind of error you are getting, and then implement the code to make the test pass!

About

Practice problems for mastering the basics of javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%