Last active
August 29, 2015 14:01
-
-
Save junosuarez/bae427e2fe5da8822864 to your computer and use it in GitHub Desktop.
the future of javascript
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
require('cat-picture') | |
document.addEventListener('DOMContentLoaded', () => { | |
var nums = [1,2,3,4,5,6,7,8,9] | |
var text = nums.map((n) => 2*n).join('\n') | |
document.body.innerHTML += '<pre>' + text + '</pre>' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment