Lesson 7: Understanding Functions

Lesson Overview

In this lesson, you will learn about functions in JavaScript. Functions are reusable blocks of code that perform a specific task.

Graphical Preview

Function Preview

Code Example


function greet(name) {
    return 'Hello, ' + name + '!';
}
console.log(greet('World'));