1.When a function is defined
2.When a function is declared
3.When the scope of the function is over
4. When a function is called
Answer:2