GithubHelp home page GithubHelp logo

js-koans's Introduction

DevMountain JavaScript Koans

This purpose of this repository is to introduce you to Test Driven Development fundamentals and more importantly, introduce you to JavaScript fundamentals. You will be presented with a group of failing tests. Your task is to look at the test, see what it's testing, and make that test pass. Don't just guess - really try to understand the JavaScript principle that is being applied to make that particular test pass.

  1. Fork this repository
  2. Observe the files in the 'koans' folder. You'll notice each file is testing for some particular piece of knowledge, whether it be Arrays, Objects, Functions, etc.
  3. Open up KoansRunner.html in your Web Browser and observe that it shows one failing test. To see all the tests that are failing, click on 'look ahead'. This will show you every test in the test suite.
  4. The most outer text in the red box is the particular section you're in, in from that is the particular test, and inside that box in the gray area is what the test suite is expecting to happen. In this case the test suite is expecting 'false to be Truthy'. Inside that box you'll notice which file the test is failing at, AboutExpects.js
  5. Navigate to AboutExpects.js and make all those tests pass to get a feel for how TDD (test driven development) works.
  6. Once you make all those tests pass, notice that those particular tests go green, and now the most outer text is now different - because we've moved on to a different section. Keep working to pass all the tests. Be sure to commit and push to your fork often, it's good practice.

This repo is a fork of the following link with added Koans

js-koans's People

Contributors

tylermcginnis avatar

Watchers

James Cloos avatar Jeramy Wakley 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.