Last active
February 3, 2019 06:52
-
-
Save ervinne13/31b3b41a8a3f85a6b33ec684269ffc97 to your computer and use it in GitHub Desktop.
Refactoring JavaScript: Separation of Concerns - Styles on JS
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 foo = document.getElementById('foo'); | |
foo.style.color = 'red'; | |
foo.style.border = '2px solid #000'; | |
foo.style.paddingLeft = '3px'; | |
foo.style.marginTop = '3px'; | |
foo.style.fontSize = '1.2em'; | |
foo.style.fontStyle = 'italic'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment