Skip to content

Instantly share code, notes, and snippets.

@junosuarez
Last active August 29, 2015 14:01
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save junosuarez/bae427e2fe5da8822864 to your computer and use it in GitHub Desktop.
the future of javascript
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