This lesson shows why functions are needed in JavaScript. When we see repeated code, we create a function to hold that code. Then we call the function whenever we want to run that code. This saves us from writing the same lines multiple times. The example defines a function greet that prints 'Hello!'. We call greet twice, so 'Hello!' prints two times. The execution table shows each step: defining the function, calling it the first time, calling it the second time, and ending. The variable tracker shows the greet variable holds the function after step 1 and stays the same. Key moments explain why functions help reuse code and make fixing easier. The quiz checks understanding of when the function is created, what it prints, and what happens if we don't use a function. The quick snapshot reminds us that functions group repeated code, making programs shorter and easier to maintain.