From a3fd93629ad80c123119e09a9b5e44e831c4cf39 Mon Sep 17 00:00:00 2001 From: SamuelX Date: Thu, 26 Nov 2020 10:19:35 -0500 Subject: [PATCH] proposing possible changes with regard to JS Closure --- 3-terrarium/3-intro-to-DOM-and-closures/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/3-terrarium/3-intro-to-DOM-and-closures/README.md b/3-terrarium/3-intro-to-DOM-and-closures/README.md index 05ee7194..56ab16af 100644 --- a/3-terrarium/3-intro-to-DOM-and-closures/README.md +++ b/3-terrarium/3-intro-to-DOM-and-closures/README.md @@ -69,6 +69,8 @@ What's going on here? You are referencing the document and looking through its D ## The Closure + + Now you are ready to create the dragElement closure, which is an outer function that encloses an inner function or functions (in our case, we will have three). Closures are useful when one or more functions need to access an outer function's scope. Here's an example: