📌  相关文章
📜  Day 6: Bitwise Operators hackerrank 10 天 javascript 解决方案 - Javascript 代码示例

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

代码示例2
// Day 1: Functions hackerrank 10 days of javascript solution
function factorial(n){
    let result = 1;
    for(let i=1; i<=n; i++){
        result = result * i;
    }
    return result;
}