What happens with memory?

What happens with memory?
0

#1

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

EDIT:
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?


#2

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

TL;DR - replace vars with lets