# 循环 **Published by:** [tianlang](https://paragraph.com/@tianlang/) **Published on:** 2022-03-24 **URL:** https://paragraph.com/@tianlang/JaExtWiKHoSv8brERoNH ## Content 现有语言实现循环方式统计: //1.for for (int i = 0 ; i < 10 ; i++) { } for (obj in array) { } // 2. while while(true) { } OC: for (int i = 0; i < 10 ; i ++) { } for (obj in array) { } solidity: for (uint i = 0; i < 10; i ++) { } while (true) { } js for (var i=0;i<cars.length;i++) { console.log(cars[i]); } ## Publication Information - [tianlang](https://paragraph.com/@tianlang/): Publication homepage - [All Posts](https://paragraph.com/@tianlang/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@tianlang): Subscribe to updates