Skip to content

Commit

Permalink
Merge pull request ganqqwerty#106 from pranavk56/doc-fixes
Browse files Browse the repository at this point in the history
First Commit - Checked Typo/Grammar and made minor fixes in 2 places
  • Loading branch information
ganqqwerty authored Jun 19, 2021
2 parents b2ca809 + 0f3706c commit 119fd3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ A closure is a function defined inside another function (called parent function)

The closure has access to the variables in three scopes:

- Variable declared in his own scope
- Variable declared in its own scope
- Variable declared in its parent function's scope
- Variable declared in the global namespace

Expand Down Expand Up @@ -333,7 +333,7 @@ console.log(output);
```
<details><summary><b>Answer</b></summary>

The code above will output `0` as output. `delete` operator is used to delete a property from an object. Here `x` is not an object it's **local variable**. `delete` operator doesn't affect local variables.
The code above will output `0` as output. `delete` operator is used to delete a property from an object. Here `x` is not an object, it's a **local variable**. `delete` operator doesn't affect local variables.


</details>
Expand Down

0 comments on commit 119fd3f

Please sign in to comment.