Faculty of Engineering and Mathematical Sciences 
Not logged in (login)

help3403


This forum is provided to promote discussion amongst students enrolled in Agile Web Development (CITS3403).
 
Options:
RSS cloud
Jump to:

Javascript Closure

1 of 419 articles shown, currently no other people reading this forum.
photo
From: Timothy F.
Date: Tue 2nd Jun 2020, 9:53am
Actions: 
        Login-to-reply

 

"Matthew Carter" <22*6*8*[email protected]*u*e*t*u*a*e*u*a*> wrote:

> Hi Tim, Haolin and Tom,
> 
> I have been going over the practice papers and have come across the term "closure" in 
> javascript. 
> 
> I can't find much in the lectures referencing this can you please tell me what it is?
> 
> Sincerely,
> 
> Matthew Carter
Javascript lecture, slides 43 and 44?

It's a function, created and returned by another function, fixing some parameters in its 
evaluation. Typically, callbacks are implemented using closures.

Related articles

Javascript Closure (all 3) RSS
├─ original   Sun 31st May 2020, 5:36pm, Matthew C.
├─ THIS   Tue 2nd Jun 2020, 9:53am, Timothy F.
└─ reply 2   Tue 2nd Jun 2020, 1:25pm, Matthew C.  O.P.
This Page


Program written by: [email protected]
Feedback welcome
Last modified: 11:27am Sep 21 2020