Coder Social home page Coder Social logo

115's Introduction

OO step by step with ES6

适用对象:

  1. 没有js面向对象经验的人快速验证自己是否已经具备了用js进行基本的面向对象编程的能力
  2. 没有面向对象经验的人通过完成测试来验证自己已经具备了用js进行基本的面向对象编程的能力。

需求

根据spec/practice_*/README.md中的需求编写代码,使得测试代码可以运行通过。

挑战

  • 理解构造器
  • 理解封装
  • 理解继承
  • 理解多态

要求

  • 根据spec/paractice_/的README.md完成对应的src/practice_/的代码。要求测试通过,并符合题目要求。
  • 能够理解代码的执行过程中都发生了什么,如果不能够理解,使用调试器进行单步调试来辅助理解。

交付物

不修改测试代码,只修改实现代码,使得测试全部通过。

环境

  • Lodash 3.9.3
  • Mocha 4.0.1
  • Sinon 4.0.1

开始

在命令行中使用以下命令在用户本地任意目录下clone此题目库

git clone repo_of_this_template

初次下载完需要安装依赖:

npm install

运行测试:

npm test

运行特定测试:

node_modules/mocha/bin/mocha spec/practice_1/*.js --require babel/register

学习资源

  1. Introduction to Object Oriented JavaScript
  2. Javascript 面向对象编程(一):封装
  3. Javascript面向对象编程(二):构造函数的继承
  4. Javascript面向对象编程(三):非构造函数的继承
  5. JavaScript Objects
  6. CodeForDream Javascript 中级

115's People

Contributors

seabornlee avatar gaozebin avatar jtong avatar

Watchers

James Cloos 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.