Object Properties and Methods
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
obj.propName
obj['propName']
Passing Objects to Functions
Functions can change an object's properties and methods
Standard Built-in Objects
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
date, math, string, number
The Document Object Model (DOM)
https://developer.mozilla.org/en-US/docs/Web/API/Element
the document object
Styling DOM Elements
element.style.cssProp = 'value'
https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement
Detect Button Clicks
element.addEventListener(event, function())
Showing and Hiding DOM element
element.classList.add(className)
element.classList.remove(className)
element.classList.contains(className)
'Study > Coding' 카테고리의 다른 글
Scope and Hoisting (0) | 2020.03.01 |
---|---|
Array (0) | 2020.03.01 |
Functions (0) | 2020.02.12 |
Program Flow (0) | 2020.02.12 |
Types and Operators (0) | 2020.02.07 |