Skip to content

Instantly share code, notes, and snippets.

@eyezick
eyezick / machine.js
Created June 30, 2021 15:02
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@eyezick
eyezick / ES6-notes.md
Last active March 23, 2017 00:47
ES6 Notes

const & let:

  • Both are block-scoped, and can only be declared once

  • Function defaults are a thing; can by default set argument to a value

    function ok(num=54) {
      return num }
    
    ok() // returns 54