FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fixed formatting issues #139 · pythoncat1024/javascripting@7699cb0 · GitHub

Commit 7699cb0

Browse files
committed
Fixed formatting issues workshopper#139
1 parent 5737918 commit 7699cb0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎problems/scope/problem.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ function foo() {
1313
var b = a * 3; // b cannot be accessed outside foo function, but can be accessed by functions
1414
// defined inside foo
1515
function bar(c) {
16-
var b = 2; // another `b` variable is created inside bar function scope
17-
// the changes to this new `b` variable don't affect the old `b` variable
18-
console.log( a, b, c );
16+
var b = 2; // another `b` variable is created inside bar function scope
17+
// the changes to this new `b` variable don't affect the old `b` variable
18+
console.log( a, b, c );
1919
}
2020

2121
bar(b * 4);
@@ -61,7 +61,7 @@ var a = 1, b = 2, c = 3;
6161
Use your knowledge of the variables' `scope` and place the following code inside one of the functions in `scope.js`
6262
so the output is `a: 1, b: 8, c: 6`
6363
```js
64-
console.log("a: "+a+", b: "+b+", c: "+c);
64+
console.log("a: " + a + ", b: " + b + ", c: " + c);
6565
```
6666

6767
Check to see if your program is correct by running this command:

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL