Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is closure and how do you use it?
Home
JavaScript
What is closure and how do you use it?
+2
votes
asked
Jul 16, 2019
in
JavaScript
by
Indian
What is closure and how do you use it?
#java-script
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 16, 2019
by
Indian
When a function returns the other function the returning function will hold its environment and this is known as closure.
Related questions
+1
vote
How Do You Refer To The Main Browser Window That Opened It?
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
#java-script
+3
votes
I want to re-reach and use an object once it has been garbage collected. Define How it’s possible in Java?
asked
May 31, 2020
in
JAVA
by
SakshiSharma
#java-research
#java-garbage-collect
#java-define
#java-script
#java-games
#games-java
Java-questions-answers
+2
votes
How can you move element in lowercase to uppercase from an array?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+2
votes
How to create an array in js and how to read array elements?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
How to add/remove properties to object dynamically in Javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
How to redirect a page to another page in Javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+2
votes
How to add one new element at end of an array in javascript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+2
votes
How to define an anonymous function?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
How can we create an object in JS?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
+1
vote
What is difference between Array.splice() and Array.slice() method in JavaScript?
asked
Jul 16, 2019
in
JavaScript
by
Indian
#java-script
...