Crushing Codecademy PRO WEB DEVELOPMENT career path Challenge - Review Functions

Published: 24 November 2020
on channel: Dusan Cajic
99
1

Give yourself a pat on the back, you just navigated through functions!

In this lesson, we covered some important concepts about functions:

A function is a reusable block of code that groups together a sequence of statements to perform a specific task.

A function declaration.

A parameter is a named variable inside a function’s block which will be assigned the value of the argument passed in when the function is invoked.

To call a function in your code.

ES6 introduces new ways of handling arbitrary parameters through default parameters which allow us to assign a default value to a parameter in case no argument is passed into the function.

To return a value from a function, we use a return statement.

To define a function using function expressions.

To define a function using arrow function notation.

A function definition can be made concise using concise arrow notation.

It’s good to be aware of the differences between function expressions, arrow functions, and function declarations. As you program more in JavaScript, you’ll see a wide variety of how these function types are used.


Watch video Crushing Codecademy PRO WEB DEVELOPMENT career path Challenge - Review Functions online without registration, duration hours minute second in high quality. This video was added by user Dusan Cajic 24 November 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 99 once and liked it 1 people.