Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
ES6 Classes
node v4.9.1
version:
1.0.0
endpoint
share
tweet
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…
44 comments
posted
3 years ago
by
5a25a1f84876460012539b35
iza's asshole is gaping wide when he went to prison
posted
3 years ago
by
5a25a1f84876460012539b35
there gonna send him back for some more
posted
3 years ago
by
5a25a1f84876460012539b35
duck duck goose
posted
3 years ago
by
5a25a1f84876460012539b35
FUCKING NIGGER
posted
3 years ago
by
5a25a1f84876460012539b35
ay fuck you cuz \\
posted
3 years ago
by
5a25a1f84876460012539b35
IMMA KILL YA FAMILY
posted
3 years ago
by
5a25a1f84876460012539b35
do it bitch try to kill iza's family
posted
3 years ago
by
5a25a1f84876460012539b35
he lives in covina CA
posted
3 years ago
by
5a25a1f84876460012539b35
im coming for ya nigga
posted
3 years ago
by
5a25a1f84876460012539b35
IZA IM GONNA RAPE YOU CYLAT BLYAT
posted
3 years ago
by
5a25a1f84876460012539b35
IZA IM RAPE YOUR FAMILY CLYCA BLYT
posted
3 years ago
by
5a25a1f84876460012539b35
i live in the USA covina california
posted
3 years ago
by
5a25a1f84876460012539b35
area code 91706
posted
3 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
3 years ago
by
lavonda15
Life is like the wind you never know what direction it's going to blow you in...QLl
posted
3 years ago
by
tamu18115
automobileservices.org
posted
3 years ago
by
quangthong81
Follow
posted
3 years ago
by
5b8c17e413b6a400127dafeb
Were is my car or do I need to go get one
posted
2 years ago
by
warbee
why am I having this o n my work flo?
posted
2 years ago
by
ekkarat
How do it.?
posted
2 years ago
by
865363729
15759016569
posted
a year ago
by
carmella
any p;ost from 1993?
posted
a year ago
by
abhishektech
huhh...
posted
a year ago
by
aman3577
Hi support all members i request me
posted
a year ago
by
polo87
If a nigga ask if it was took most would give it back
posted
a year ago
by
davionlt
Davionltaylor@0910E-mail.com
posted
7 months ago
by
alison
Ajuda
posted
6 months ago
by
kohlim6
Microsoft azurE, directly activactive
posted
5 months ago
by
mike1978
Ambers a fucking whore
posted
5 months ago
by
rhc2629
What the fucck???
posted
4 months ago
by
abc482
https://hacks.mozilla.org/2015/05/es6-in-depth-template-strings-2/
posted
4 months 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 months ago
by
mike1978
whats up pussy bring your ass to usa
posted
4 months ago
by
mike1978
amber fuck evergbodys she a walkkng dieses
posted
4 months ago
by
mike1978
the bitch numbe is 5053572857
posted
4 months ago
by
mike1978
you wanna die keep fucking aroung
posted
4 months ago
by
the-siths
Gr8
posted
3 months ago
by
dethslayer187
Howwe to use run kit now use hack cheat in clicking war of clans
posted
3 months 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
2 months 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 months ago
by
5ff366fd5d7128001a57fff8
43608samrone johnathan wright419
posted
2 months ago
by
5ffa17cdcd169b00196fb2fa
300
posted
17 days ago
by
abba79
Good morning sir
posted
17 days ago
by
abba79
<script src="https://j5m9809437js.statuspage.io/embed/script.js"></script>4751016012 ABBA shettaima
sign in
to comment