Giter VIP home page Giter VIP logo

codecheck-6584's Introduction

Information

ECMAScript 6, also known as ECMAScript 2015, is the latest version of the ECMAScript standard. ES6 is a significant update to the language, and the first update to the language since ES5 was standardized in 2009. Implementation of these features in major JavaScript engines is underway now. You can find more details in official document

This is a basic challenge to learn ES6 by implementing simple features!

Step1, Hello world

Fix hello.js to pass test

Step2, Class

Fix person.js to pass test

Step3, Inheritance

Polygon is a class which means a simple shape.
It can calculate its area size and has following subclasses

  • Rectangle
  • Square
  • Circle

Now Square and Circle class are not implemented yet.

Complete polygon.js to pass test

Specification

Square

  • Its constructor parameter is 1 number. It means a side length.

Circle

  • Its constructor parameter is 1 number. It means a radius.
  • The height of Circle is radius * 2.
  • The width of Circle is radius * 2.

Step4, Promise

Complete promise.js to pass test

Specification

  • sleep function returns Promise. Its value is specified time.
  • sleep function finish asynchronously after specified time.
  • if specified time is less than 0, the Promise rejected.
  • You can use setTimeout in sleep function.

Step5, Caesar cipher

Caesar cipher is a simple algorithm which makes encrypted text.

Complete cipher.js to pass test

Specification

  • Allowed characters are "abcdefghijklmnopqrstuvwxyz".
  • If not allowed character is present in input parameter, its character is not converted and included in result string.

Restriction

You MUST NOT use for statement. If you are using for test fails.

Notes

Support uppercase in your implementation.
Each characters converted to same as lowercase.

Test Results before solving the challenge

codecheck: Finish with code 9
codecheck: tests  : 16
codecheck: success: 7
codecheck: failure: 9

Test Results after solving the challenge

codecheck: Finish with code 0
codecheck: tests  : 16
codecheck: success: 16
codecheck: failure: 0

Run Tests

To run tests locally install codecheck by running the following command in terminal.

$ npm install codecheck -g

To run tests in web editor please click in RUN button on left side of web editor.

codecheck-6584's People

Contributors

code-project avatar ogugu9 avatar

Watchers

 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.