Lesson 6: Understanding Functions

Lesson Overview

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

Graphical Preview

Graphical representation of functions will be displayed here.

Code Example


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