mirror of
https://github.com/microsoft/Web-Dev-For-Beginners.git
synced 2025-08-16 03:34:48 +02:00
Update README.md
This commit is contained in:
@@ -73,7 +73,7 @@ Closures are useful when one or more functions need to access an outer function'
|
|||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
function displayCandy(){
|
function displayCandy(){
|
||||||
let candy = ['jellybeans];
|
let candy = ['jellybeans'];
|
||||||
function addCandy(candyType) {
|
function addCandy(candyType) {
|
||||||
candy.push(candyType)
|
candy.push(candyType)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user