File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
1-js/06-advanced-functions/03-closure/4-counter-object-independent Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11
2- Surely it will work just fine .
2+ Cu siguranță că va funcționa foarte bine .
33
4- Both nested functions are created within the same outer Lexical Environment, so they share access to the same ` count ` variable :
4+ Ambele funcții imbricate sunt create în cadrul aceluiași Mediu Lexical exterior, astfel încât au acces comun la aceeași variabilă ` count ` :
55
66``` js run
77function Counter () {
Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ importance: 5
22
33---
44
5- # Counter object
5+ # Obiect contor
66
7- Here a counter object is made with the help of the constructor function .
7+ Aici se creează un obiect contor cu ajutorul funcției constructor.
88
9- Will it work? What will it show ?
9+ Va funcționa? Ce va arăta ?
1010
1111``` js
1212function Counter () {
You can’t perform that action at this time.
0 commit comments