Code Monkey home page Code Monkey logo

simple_modular_patterns_and_tests's Introduction

#Simple Modular and Test Patterns DUE: Jan 5, 2016 by 1pm(class start)

##To Submit this Assignment

  • fork this repository
  • write all of your code in a folder containing your name
  • push to your repository
  • submit a pull request to this repository
  • submit a link to your PR in canvas

##Description: This assignment will have you create a simple Javascript object that will be exported using the Node modular pattern we went over in class. Your object should have a function named 'greet' that takes a name as a parameter and returns the string 'hello ' + name

You should have at least one test that verifies the output of the function.

Your submission should be a link to a pull request to your own repository.

##Bonus: For an extra point, create a command line utility that will be run using node greet.js 'some name' and will pass the input contained in that argument to the greet function and output the result to the screen.

For a second bonus point, write a test that makes sure that the arguments are being processed.

##Rubric:

  • Proper Styling: 2pts
  • Proper Submission: 2pts
  • Mocha/Chai Test: 3pts
  • Use of Modular Pattern/design of greet object/function: 3pts

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.