Giter VIP home page Giter VIP logo

extended-string-class's Introduction

ExtendedStringClass

This is an object that extends the String class in Javascript. Using Prototype Oriented Programming, methods, procedures and instance attributes are added to the String class to support more string manipulation features.

Instructions to install, configure, and to run the programs

  • Install package dependencies: npm install
  • To run the tests: npm test

extended-string-class's People

Stargazers

Roman avatar

Watchers

James Cloos avatar Nate M. Martin avatar

extended-string-class's Issues

Test Coverage - Critical

In line 70 of /jasmine/spec/stringClassSpec.js. I added special characters, and they recognized as words. See below:

screen shot 2015-10-08 at 4 16 20 pm

The test failed with the following error:

screen shot 2015-10-08 at 4 16 29 pm

Prototype Functions - Critical

When I call '100,000,000'.fromCurrency(), I get 100000,000 instead of 100000000.
Your function should return a number, as specified in the Checkpoint Document.

Code Quality - Nitpick

In line 17 of your test spec file. You declared a variable chopStory private to the describe block, and public to its containing it blocks.

  • You should try to make variables as private as you can depending on when and how they are used.
  • You use the variable just once, you could however, place the string argument directly as opposed to creating a variable for it.

Comment - Nitpick

Your comments in your test spec file should be placed before the lines of the methods or preceedures that they explain.

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.