5 ms·
> In the functional example, where does Person store the fName and lName variables? With a closure? And you get state hiding too. > If functions persist data,
by ovis 6y ago
> In the functional example, where does Person store the fName and lName variables?
With a closure? And you get state hiding too.
> If functions persist data, are they really classified as functions anymore?
Sure, since otherwise returning a function from a function wouldn't be very interesting.