This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = ['Sacha', 'Og', 'Haru']; | |
arr[Symbol.iterator] = function *() { | |
var i = this.length - 1; | |
while (i >= 0) { | |
yield this[i]; | |
i--; | |
} | |
} | |
for (var value of arr) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="es"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Aprendiendo Grid CSS</title> | |
<style> | |
html { | |
box-sizing: border-box; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arr = ['Sacha', 'Og', 'Haru']; | |
arr[Symbol.iterator] = function *() { | |
var i = this.length - 1; | |
while (i >= 0) { | |
yield this[i]; | |
i--; | |
} | |
} | |
for (var value of arr) { |