Skip to content

Instantly share code, notes, and snippets.

@avizyt
Last active September 8, 2022 13:55
Show Gist options
  • Save avizyt/daa239c1eb61017250e4758ff8e8109f to your computer and use it in GitHub Desktop.
Save avizyt/daa239c1eb61017250e4758ff8e8109f to your computer and use it in GitHub Desktop.
JavaScriptPad

Document Object Model

Topics

  1. Basic DOM traversing
  2. Accessing elements in the DOM
  3. Element click handler
  4. This and the DOM
  5. Manipulating element style
  6. Changing the classes of an element
  7. Manipulating attributes
  8. Event listeners on elements
  9. Creating new elements

Flex Properties

  • flex-flow
  • flex

Clouser snippet

function outer() {
    let counter = 0;
    function inner() {
        counter++;
        console.log(counter);
    }
    return inner;
}
const fn = outer();
fn();
fn();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment