Giter Site home page Giter Site logo

justjavac / es2018puzzlers Goto Github PK

View Code? Open in Web Editor NEW
29.0 6.0 1.0 168 KB

ES2018(ES9) 测试题

Home Page: http://es2018puzzlers.justjavac.com

License: GNU General Public License v3.0

JavaScript 4.47% CSS 11.90% HTML 83.63%
javascript es2018 es9 es9-features es2018-features

es2018puzzlers's Issues

定义 `B` 和 `C`,是下面语句能正常运行

// some code about B & C
class A extends (B = C) {}      // 1
class A extends (B || C) {}     // 2
class A extends (B + C) {}      // 3
class A extends B() {}          // 4
class A extends (B, C) {}       // 5
class A extends ({}) {}         // 6
class A extends B.C {}          // 7
class A extends (new B()) {}    // 8
class A extends (B++) {}        // 9

async function f() {
  class A extends (await B) {}  // 10
}

function* f() {
  class A extends (yield B) {}  // 11
}

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.