From 1f11a227e7dfaba0c36c81199e8cf788ff93fd47 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Tue, 17 Jul 2018 21:04:11 +0300 Subject: [PATCH] Update Recursion.md --- glossary/Recursion.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glossary/Recursion.md b/glossary/Recursion.md index 24eb39bbd..23eb35182 100644 --- a/glossary/Recursion.md +++ b/glossary/Recursion.md @@ -1,3 +1,6 @@ ### Recursion -Recursion is the repeated application of a process. In JavaScript, recursion involves functions that call themselves repeatedly until they reach a base condition. The base condition breaks out of the recursion loop because otherwise the function would call itself indefinitely. Recursion is very useful when working with data structures that contain nesting where the number of levels deep is unknown. +Recursion is the repeated application of a process. +In JavaScript, recursion involves functions that call themselves repeatedly until they reach a base condition. +The base condition breaks out of the recursion loop because otherwise the function would call itself indefinitely. +Recursion is very useful when working with nested data, especially when the nesting depth is dynamically defined or unkown.