You are viewing a single comment's thread. Return to all comments →
class Polygon { constructor(side) { this.side = side; } perimeter() { let side=this.side return side.reduce((a,b)=> a+b) } }
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Classes
You are viewing a single comment's thread. Return to all comments →