Created
May 27, 2019 13:30
-
-
Save DylanCh/dd6f8a668941aa4a85ae2bcb31d0549f to your computer and use it in GitHub Desktop.
document API
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 div = document.createElement('div'); | |
div.id = 'abc'; | |
div.className = 'col-md-5'; | |
console.log(div.outerHTML); // output: <div id="abc" class="col-md-5"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment