clojurescript_可视化概述ClojureScript和JavaScript之间的异同

clojurescript

by Jacek Schae

由Jacek Schae

可视化概述ClojureScript和JavaScript之间的异同 (A visual overview of the similarities and differences between ClojureScript and JavaScript)

If you ever wondered how different — or similar — ClojureScript and JavaScript are, then this article should help answer this question. And hopefully it’ll surprise you a couple of times.

如果您想知道ClojureScript和JavaScript有什么不同(或相似),那么本文将有助于回答这个问题。 希望它会令您惊讶两次。

Code examples are available via GitHub Gist at the bottom of the article.

可通过本文底部的GitHub Gist获得代码示例。

基本 (Basics)

馆藏 (Collections)

功能 (Functions)

流量控制 (Flow Control)

真实性 (Truthiness)

(State)

互操作 (Interop)

Here are those code examples:

以下是这些代码示例:

JavaScript Examples

JavaScript范例

ClojureScript Examples

ClojureScript示例

If you enjoyed this article, and would like to be notified when I release similar stories, consider following me on Medium and Twitter.

如果您喜欢这篇文章,并且希望在我发布类似故事时收到通知,请考虑在Medium和Twitter上关注我。

Thanks to Brian Craft and Mike Fikes for catching the `cond` error, which has been corrected.

感谢Brian CraftMike Fikes捕获了已纠正的`cond`错误。

翻译自: https://www.freecodecamp.org/news/here-is-a-quick-overview-of-the-similarities-and-differences-between-clojurescript-and-javascript-c5bd51c5c007/

clojurescript

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值