Introduction to JavaScript Programming Introduction to JavaScript Programming

Functions in JavaScript

Kyle Simpson
You Don't Know JS
Check out a free preview of the full Introduction to JavaScript Programming course:
The "Functions in JavaScript" Lesson is part of the full, Introduction to JavaScript Programming course featured in this preview video. Here's what you'd learn in this lesson:

Functions allow you to create a block of code that can be called at anytime. Functions can also take parameters as input enabling the block of code to run more dynamically. Kyle creates a few different functions and show how to pass parameters and return values.

Get Unlimited Access Now