RosaTheDev / javascript-foundations-originals

Original Javascript foundations, feel free to fork the project to practice your JavaScript Fundamental's

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JavaScript Foundations Originals

Original Javascript foundations, feel free to fork the project to practice your JavaScript Fundamental's
I got this from Turing School of Software and Design back when I was apart of the 2110FE Cohort

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

Installation Steps

  1. Fork and clone this repo.
  2. Type cd javascript-foundations-originals 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:

> foundations@1.0.0 test /Users/RosaTheDev/turing/frontend/mod1/javascript-foundations-originals
> 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 Black as default
    - should refute isBlack
    - 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 yourslelf 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 these 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 () {. Run the test to see what kind of error you are getting, and then implement the code to make the test pass!

About

Original Javascript foundations, feel free to fork the project to practice your JavaScript Fundamental's


Languages

Language:JavaScript 100.0%