From e671b61b592df3f60e332af80369a5846cebc0b7 Mon Sep 17 00:00:00 2001 From: iamsatyansh <99334222+iamsatyansh@users.noreply.github.com> Date: Thu, 25 Aug 2022 19:18:06 +0530 Subject: [PATCH] Update Global Scope and Functions.md --- .../Basic JavaScript/Global Scope and Functions.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/javascript/FreeCodeCamps/Basic JavaScript/Global Scope and Functions.md b/javascript/FreeCodeCamps/Basic JavaScript/Global Scope and Functions.md index db26068..0cfd326 100644 --- a/javascript/FreeCodeCamps/Basic JavaScript/Global Scope and Functions.md +++ b/javascript/FreeCodeCamps/Basic JavaScript/Global Scope and Functions.md @@ -42,9 +42,8 @@ function fun2() { ### Answers -```javascript // Declare your variable here -var myGlobal = 10; +let myGlobal = 10; function fun1() { // Assign 5 to oopsGlobal Here @@ -61,5 +60,4 @@ function fun2() { output += " oopsGlobal: " + oopsGlobal; } console.log(output); - -``` \ No newline at end of file +}