Skip to content

Instantly share code, notes, and snippets.

@hoffination
Created July 4, 2017 18:24
Show Gist options
  • Save hoffination/07c7c6b38fc023f57b470745008df2f9 to your computer and use it in GitHub Desktop.
Save hoffination/07c7c6b38fc023f57b470745008df2f9 to your computer and use it in GitHub Desktop.
Babel Example JavaScript
(function (window, document) {
"use strict"
const NAME = 'Ben Hofferber'
let div = document.getElementById('appendToMe')
let h1 = document.createElement('h1')
h1.textContent = `Hello ${NAME}!`
div.appendChild(h1)
})(window, document)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment