john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

javascript scope

<!DOCTYPE html><html><head><title></title></head><body><pre><script>

    //set theory: closure as the inner closes the outer function
    function green() {
        let a;
        function yellow() {     //inner survives the outer
            let b;
        }
    }


    // scheme => javascript  (not stacks, heap)

</script></pre></body></html>

  • « For loop count functions ifs split string ip address
  • inner function »

Published

Oct 5, 2013

Category

javascript

~31 words

Tags

  • javascript 43
  • scope 1