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
Code Example
function greet(name) {
return 'Hello, ' + name + '!';
}
console.log(greet('World'));