fix(curriculum): var keyword to global-scope-and-functions (#46553)
fix(curriculum): var to global-scope-and-functions Added the `var` keyword in global-scope-and-functions challenge instructions to avoid confusionpull/46548/head
parent
1dc10c7cbe
commit
258e9d0130
|
@ -17,7 +17,7 @@ Variables which are declared without the `let` or `const` keywords are automatic
|
|||
|
||||
Using `let` or `const`, declare a global variable named `myGlobal` outside of any function. Initialize it with a value of `10`.
|
||||
|
||||
Inside function `fun1`, assign `5` to `oopsGlobal` ***without*** using the `let` or `const` keywords.
|
||||
Inside function `fun1`, assign `5` to `oopsGlobal` ***without*** using the `var`, `let` or `const` keywords.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
|
Loading…
Reference in New Issue