Created
September 6, 2017 09:18
-
-
Save benfoxall/d33f9a508fdde419a2badbbb7497a7d3 to your computer and use it in GitHub Desktop.
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
let delayed = new Promise(r => setTimeout(r, 500, 'hello')) | |
let element = Object.assign( | |
document.createElement('div'), | |
{textContent: 'hello'} | |
) | |
Object.assign(element.style, { | |
background: 'red' | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment