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 3947369 commit 12ec51bCopy full SHA for 12ec51b
page/using-jquery-core/iterating.md
@@ -115,7 +115,7 @@ Given the following markup:
115
we can write:
116
117
```
118
-$('li').each( function(index, Element){
+$('li').each( function(index, element){
119
120
console.log( $(this).text() );
121
@@ -261,7 +261,7 @@ $('li').each( function() {
261
We can do this:
262
263
264
-$('li').map( function(index, Element) {
+$('li').map( function(index, element) {
265
266
return this.id;
267
@@ -297,9 +297,9 @@ var arr = [{
297
}];
298
299
300
301
302
- return Element.id;
+ return element.id;
303
304
}).get(); // returns ["a", "b", "c"]
305
0 commit comments