Skip to content

Commit 9b01778

Browse files
ups
1 parent e7eaf66 commit 9b01778

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

bts/execution-context/execution-context.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// CHECK THE README FILEgit
1+
// CHECK THE README FILE
22

33
// 1 var x = 100
44
// 2 var y = 50
@@ -11,9 +11,9 @@
1111

1212
/*
1313
---------------------------------------------------------------------------------------------------------
14-
* in line 1, var is allocated in the memory global execution context and the value is set to undefined,
15-
* same as y in line 2, the stuffs will allocate the getsum function skip others line 7 and set the values of sum1 in line 7 to undefined as well aa line 8
16-
14+
* on line 1, var is allocated in the memory global execution context and the value is set to undefined,
15+
* same as y on line 2, the stuffs will allocate the getSum function skip others line 7 and set the values of sum1 in line 7 to undefined as well aa line 8
16+
1717
* the stuffs will come again to set the values of the actually variables, now x on line 1 is 100 as well as the rest
1818
---------------------------------------------------------------------------------------------------------
1919
*/

bts/execution-context/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ When we load a JavaScript file in the browser, the first thing that the engine d
88

99
To give you a better idea of what the execution context looks like, you can picture it as a box with 2 sides. One side is the `variable environment` which is a memory area for your variables and functions in key-value pairs.
1010

11-
Then on the other side,you have your actual lines of code being run. This is the `thread of execution`. The code is executed one line at a time on a **single thread**, which you can think of as like a **process**. JavaScript is a single-threaded, synchronous language.
11+
Then on the other side, you have your actual lines of code being run. This is the `thread of execution`. The code is executed one line at a time on a **single thread**, which you can think of as like a **process**. JavaScript is a single-threaded, synchronous language.

challenges/calculator/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function calculator(num1, num2, operator) {
1515
result = num1 / num2;
1616
break;
1717
default:
18-
result = "operator invalid, can only br +, _, * or /";
18+
result = "operator invalid, can only be +, _, * or /";
1919
}
2020

2121
console.log(result);

challenges/object/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// STEP 1
1+
// STEP 1 - create an obect- check readme for full intructions
22

33
const library = [
44
{
@@ -42,13 +42,13 @@ x = library[2].status.read = true;
4242

4343
// console.log(x, library);
4444

45-
// STEP 3
45+
// STEP 3 - Destructure the title from the first book and rename the variable to `firstBook`
4646

4747
const { title: firstBook } = library[0];
4848

4949
// console.log(firstBook);
5050

51-
// STEP 4
51+
// STEP 4 - Turn the library object into a JSON string.
5252

5353
const obj = JSON.stringify(library);
5454

functions/block-scope.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (true) {
2727

2828
console.log(a); // 8 will still work
2929

30-
// WORKING IN WITH LOOP, IF YOU USE VAR, THE INDEX WILL BE ACCESSED OUTSIDE THE FUNCTION
30+
// WORKING WITH LOOP, IF YOU USE VAR, THE INDEX WILL BE ACCESSED OUTSIDE THE FUNCTION
3131

3232
for (var i = 0; i < 10; i++) {
3333
console.log(i + i);

logic/switch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ new Date - Creates a new Date.
2020

2121
switch (month) {
2222
case 1:
23+
``;
2324
console.log("Hello, March"); // this is from the time on my local machine
2425
break;
2526

0 commit comments

Comments
 (0)