02Geek HTML5 and JavaScript, TypeScript, React, Flash, ActionScript online School
Previous VideoNext Video

Understanding functions and parameters

In this lecture we will dive deeper into functions to really understand how they work. The first step is to understand the difference between variables and functions. While variables are just containers of data, functions are containers of action.

So far we worked with the built in functions but we didn't really dive into what they actually do. In this lecture we'll understand how functions work and discover how parameters work.

Parameters are a fancy name for variables. Not just regular variables but variables that are being sent into a function. You want to send in variables into a function when you want to have customization to inaction. Such as, a running function you would want to tell the function who should run.

Ready to Level Up Your Skills?

Join thousands of learners on 02GEEK and start your journey to becoming a coding expert today!

Enroll Now for Free!

Functions Functions and some Functions

A Boolean variable can contain only one of two values[true, False]. It's main use is to create a flag in the road.

00:36

Understanding functions and parameters

dive deeper into functions and really understand how they function. The first step is to understand the difference between variables and functions.

08:32

Leveraging CSS selectors in JavaScript

learn how to use CSS selectors in JavaScript.

06:34

Creating our own functions

learn how to create JavaScript functions

09:18

Functions Galore

From this lecture on words for the remainder of the chapter we will be pushing our functions to their limit as we create awesome animations.

08:28

Creating a Slide Show

continue exploring the world of functions as we complete creating our slide show. In the process were going to create our first function parameter. This is going to be fun.

13:47

Setting default parameter values

Sending default values to functions in JavaScript.

09:28

Real functions phone home

Functions that return of value are called functions well functions that don't are called procedures.

10:33

Our first event

Events are functions that trigger that we didn't initiate but the user or the system did

02:46