4 Matching Annotations
  1. Dec 2020
    1. Don't worry about the fact that we're redeclaring the foo function for every component instance — Svelte will hoist any functions that don't depend on local state out of the component definition.
  2. Sep 2020
  3. developer.mozilla.org developer.mozilla.org
    1. For that reason, it is recommended to always declare variables at the top of their scope (the top of global code and the top of function code) so it's clear which variables are function scoped (local) and which are resolved on the scope chain.