📅  最后修改于: 2022-03-11 15:02:23.096000             🧑  作者: Mango
// Five examples of non-arrow function expressions
function (x) { return x + x + x }
function (s, n) { return s.length > n }
function (p, n, r, t) { return p * Math.pow(1 + (r / n), n * t) }
function () { return Math.random() * 100 }
function (x, y) {
let xSquared = x * x
let ySquared = y * y
return Math.sqrt(xSquared + ySquared)
}