📌  相关文章
📜  Day 5:继承hackerrank 10天javascript解决方案——Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:41.939000             🧑  作者: Mango

代码示例4
// Day 4: Classes hackerrank 10 days of javascript solution
class Polygon{
    constructor(length){
        this.sideLength= length;
    }
    perimeter(){
        let result =0;
        for(let i=0; i