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

Functions

Functions enable us to write chunks of code that perform an action: they can be reused, making our code cleaner and more effective. Play with this one: write your own functions!

Duration: 01:22:45

Created with

Ben Fhala

Ben Fhala

Ben Fhala is the creative force and founder behind 02geek, a pioneering platform dedicated to making web development accessible to everyone. With over 18 years of experience in the industry, Ben has a deep passion for teaching and a knack for breaking down complex concepts into easy-to-understand lessons.

Functions Overview

What you'll learn

Functions enable us to reuse our code and be more effective. They enable us to write less code and reuse our code as much as we need to use it.

Overview

02:32

What Are Functions?

09:41

Functions vs. Methods

07:33

Calling Functions();

14:02

Creating Functions

03:54

Between Functions and Variables

04:29

Sending A Param

03:15

Sending Multiple Parameters

05:53

Return Something;

08:36

Void: When Functions Don't Return

02:30

The Return to Return

05:31

Scope - First Dabs

09:21

Making Default Paramters

05:29