JavaScript 2022

Term 3 Wednesday

May - July 2022

This site will be updated live during the sessions

Week 79 Example 8 A Closure

		
001const outer = function() 
		
002{
		
003    let outerFunctionVariable = "A Local variable"
		
004    const inner = function() 
		
005	{
		
006      alert(outerFunctionVariable)
		
007    }
		
008    window.fnc = inner
		
009}
		
010outer();