What happens with memory?

pen: [ http://codepen.io/anon/pen/QEYJzZ?editors=0010 ]

just type in search something*

Check out line 43 and below
there is setTimeout function for delay appending
i know that it is dropped in event-stack and it will be executed after loop
but where
disappeare this title and summary? How this is menaged in memory?

Read the part “Loops + Closure” here. It describes similar situation.

TL;DR - replace vars with lets

1 Like