4 ms·
More readable, imho: const a = g * k + j / w * d - 453368423 const b = 4566 * a + 46832 - a * a + 1 / a const c = b / 4653 + 843 * b * b const y = 4865
by jlokier 5y ago
More readable, imho:
const a = g * k + j / w * d - 453368423
const b = 4566 * a + 46832 - a * a + 1 / a
const c = b / 4653 + 843 * b * b
const y = 486543 - c + c * c
- ReleaseCandidat 5y agoI actually do prefer this too. And when using it for arrays, I'd prefer const r = [a, b, c] .map((e) => 2 * e*e) .filter((e) => e >= 0) .reduce((acc, e) => acc + e) to the new piped version.