From e4b0607cae0d9f048a10eabcbe529edaa51b5fe5 Mon Sep 17 00:00:00 2001 From: Yash bhanushali <75803955+yashbhanu@users.noreply.github.com> Date: Wed, 5 Oct 2022 05:10:02 +0530 Subject: [PATCH] Update 100-memory-lifecycle.md (#1983) --- .../100-memory-lifecycle.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/content/roadmaps/106-javascript/content/116-javascript-memory-management/100-memory-lifecycle.md b/content/roadmaps/106-javascript/content/116-javascript-memory-management/100-memory-lifecycle.md index 2cdc5d3c1..ba47a6c19 100644 --- a/content/roadmaps/106-javascript/content/116-javascript-memory-management/100-memory-lifecycle.md +++ b/content/roadmaps/106-javascript/content/116-javascript-memory-management/100-memory-lifecycle.md @@ -1 +1,9 @@ -# Memory lifecycle \ No newline at end of file +# Memory lifecycle + +Regardless of the programming language, the memory life cycle is pretty much always the same: + + - Allocate the memory you need + - Use the allocated memory (read, write) + - Release the allocated memory when it is not needed anymore + +The second part is explicit in all languages. The first and last parts are explicit in low-level languages but are mostly implicit in high-level languages like JavaScript.