When you enroll through our links, we may earn a small commission—at no extra cost to you. This helps keep our platform free and inspires us to add more value.

*UPDATED* JavaScript Complete Series 2023 - Part 12: JavaScript Functions
Unlock creativity with Skillshare! Learn acrylic painting, AI writing, graphic design, and photography.

Related Courses
- *UPDATED* JavaScript Complete Series 2023 - Part 2: Console, Window and BOM (⭐ 0 | Reviews 0)
- *UPDATED* JavaScript Complete Series 2023 - Part 1: Programming, Engines, and intro to JavaScript (⭐ 0 | Reviews 0)
- *UPDATED* JavaScript Complete Series 2023 - Part 6: JavaScript Alerts, Dialog boxes, and more (⭐ 0 | Reviews 0)
This Course Includes
skillshare
0 (0 reviews )
1 hours 42 minutes
english
Online - Self Paced
course
SkillShare
About *UPDATED* JavaScript Complete Series 2023 - Part 12: JavaScript Functions
Class Introduction
What is a function?
Invoking vs returning a function
Fun lecture - click and change text
Fun - display a random quote
Math.random
What is the RETURN keyword
2 types of functions - declaration vs expression
Function declarations vs function expressions
Functions are like values
The new ARROW syntax explained
What does binding of THIS mean?
Recap time
toLowerCase() method - intro
Array.from() method - intro
Array.from() - how does it work?
indexOf() method - intro
Using indexOf() with arrays
Using indexOf() with strings
What You Will Learn?
- WELCOME TO THIS SKILLSHARE CLASS ON FUNCTIONS.
- THIS IS PART 12 OF MY JAVASCRIPT COMPLETE SERIES.
- What we cover in this particular class?.
- We will cover of ton of information in this entire series, but for Part 12 we concentrate on JavaScript functions. .
- Functions are the bread and butter of any programming language.
- JavaScript is no exception.
- But why do we have functions and what are they used for?.
- As you start to write more code, you’ll find that your code begins to get rather messy. It becomes harder to read, and harder to follow..
- The solution? Break your code into smaller, reusable, modular pieces. Now this has different names in different programming languages. Sometimes they are called modules, sometimes subroutines or subprograms, or just routines or methods or even functions!.
- Bottom line: a function is simply the idea of taking a block of code (whether its 1 line, 10 lines, 1000 lines or 10,000 lines) rapping it up, and giving it a name so that you can call it later and treat it as one entire block of code..
- It’s very common to name your functions in a verb-noun format such as calculateArea, welcomeUser, sendEmail, animateImage, etc..
- So remember, the great thing about calling functions is that they save you from retyping code..
- Lastly, functions allow us to introduce new coding concepts to our app. Most adults have about 20,000 words in their vocabulary. Few programming languages come with 20,000 commands built in, and the commands that are built in are VERY precisely defined (i.e. they are rigid). Therefore, we usually have to introduce new concepts to avoid repeating ourselves too much..
- So there you have it, a few good reasons why functions exist..
- But there’s a lot to them..
- Lets get into it. .
- What this entire JavaScript Grandmaster course covers?.
- JavaScript is the #1 scripting language of the web, where a lot of the dynamic and styled content is handled by JavaScript in the background. But before using this language to create dynamic websites, you need to have a firm grasp of how it works behind the scenes..
- By the end of this course, you'll be able to “speak” JavaScript by gaining an understanding of how the browser uses it, what variables, objects and functions are, what different data types there are and how to manipulate content on a website. We dig deeper and create our own dialog methods from scratch. We learn about the arrow syntax, Math.random() function, looping through objects and arrays, working with dates. We look at prototypes, JS Engines, the Execution Stack and a whole bunch more!.
- Through practical examples, this course helps you understand JavaScript piece by piece. And we use the latest and best features of JavaScript along the way so you can stay ahead of the pack..
- WHAT ARE YOU WAITING FOR. LETS GET CRACKIN'.