Code Monkey home page Code Monkey logo

javascript-training's Introduction

JavaScript Training

Getting started

git clone https://github.com/stuf/javascript-training.git
cd javascript-training
npm install

Now you should be set to go.

To get started with the tasks, run

npm start

Now what?

You should be seeing a big bunch of errors now, along the lines of

1) 01-strings.spec.js concatenateStrings:
     Error: Not implemented
      at Object.concatenateStrings (src/tasks/01-strings.js:13:9)
      at run (test/01-strings.spec.js:13:20)
      at Array.forEach (native)
      at run (test/common.js:1:96)
      at Context.it (test/01-strings.spec.js:9:5)

Your task is to implement all of the features.

The tasks are located within src/tasks/. Every task file will contain a set of functions that you will need to implement. The functions are documented, with examples on the input and the expected output.

Do not change the module.exports in the tasks

About the implementations

Bookmark the MDN JavaScript documentation โ€” it's a very comprehensive JavaScript reference for all things related to JavaScript.

Most of the tasks in the start are fairly simple, and they can usually be implemented in one to two lines of code. Look up the appropriate section in the documentation if you're lost; e.g. the String section when working on the strings tasks.

Protips

It's a good idea to keep the tests running when you're writing your implementation. The default npm start task will run the tests in "watch mode", meaning the tests will be re-run every time you save. Failing tests will output useful information on why it failed:

  1) 01-strings.spec.js concatenateStrings:

      AssertionError: expected 'foobar' to equal 'foob'
      + expected - actual

      -foobar
      +foob

If you're using Visual Studio Code as your editor, the project contains a set of recommended extensions that are worth installing.

javascript-training's People

Contributors

stuf avatar

Watchers

 avatar  avatar  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.