We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f13252 commit b4db543Copy full SHA for b4db543
docs/javascript.md
@@ -886,7 +886,6 @@ for (let index in fruits) {
886
```
887
888
### label 语句
889
-<!--rehype:wrap-class= row-span-2-->
890
891
```js
892
var num = 0;
@@ -916,10 +915,16 @@ for (let fruit of fruits) {
916
915
// => apple
917
// => orange
918
// => banana
+
919
+for (let [index, value] of fruits.entries()) {
920
+ console.log(index, value);
921
+}
922
+// => 0 apple
923
+// => 1 orange
924
+// => 2 banana
925
926
927
### for await...of
928
929
```javascript
930
async function* asyncGenerator() {
0 commit comments