TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Happy numbers in JavaScript that's readable and ESLint-able?

1 点作者 alansmitheebk超过 7 年前
Hi,<p>I&#x27;m trying to learn how to code happy numbers in JS. I&#x27;ve seen a bunch of examples but most are either very difficult to read &#x2F; understand, use implicity declared global variables, or have really bad style (according to ESLint &#x2F; D. Crockford).<p>Can anyone point me in the direction of a readable, clean, not-too-difficult-to-grok happy numbers func in JS?<p>TIA

暂无评论

暂无评论