From 75e41e28efe7adbc18a5f328e1b8a3a2320fc602 Mon Sep 17 00:00:00 2001 From: Jay Thesia Date: Sun, 19 Apr 2026 18:11:42 +0530 Subject: [PATCH] Fix typos and improve clarity in lecture notes Fix some of the spelling and grammar mistakes. --- notes/season-1/lecture-12.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/season-1/lecture-12.md b/notes/season-1/lecture-12.md index f6598ef..8e94033 100644 --- a/notes/season-1/lecture-12.md +++ b/notes/season-1/lecture-12.md @@ -189,7 +189,7 @@ function a() { var y = a(); // y is a copy of b() y(); -// Once a() is called, its element x should be garbage collected ideally. But fun b has closure over var x. So mem of x cannot be freed. Like this if more closures formed, it becomes an issue. To tacke this, JS engines like v8 and Chrome have smart garbage collection mechanisms. Say we have var x = 0, z = 10 in above code. When console log happens, x is printed as 0 but z is removed automatically. +// Once a() is called, its element x should be garbage collected ideally. But fun b has closure over var x. So mem of x cannot be freed. Like this, if more closures formed, it becomes an issue. To tackle this, JS engines like v8 and Chrome have smart garbage collection mechanisms. Say we have var x = 0, z = 10 in the above code. When console log happens, x is printed as 0 but z is removed automatically. ```