JavaScript for Beginners #24 Introduction to Functions in JavaScript

preview_player
Показать описание
Here, we will talk about how to work with functions in JavaScript.

0:00 Introduction, what is a function
0:20 How do we declare a function
1:55 How do we call a function
3:03 What are function parameters
4:15 What are function arguments
5:10 Function Example #1
8:15 The return statement in JavaScript
10:31 Function Example #2
16:39 Function Example #3
17:46 JavaScript ignoring statements after the return statement

JavaScript Playlist:

MDN Functions:

NodeJS:

VS Code:
Рекомендации по теме
Комментарии
Автор

Can we call function like this sire?
myName ();

function myName () {
const firstName = “ John “
console.log ( ‘Hi, I am ${firstName}’);
}


function myName () {
const firstName = “ John “
console.log ( ‘Hi, I am ${firstName}’);
}

myName();

What’s difference between these two ?
Does it work sire?

aikaosike
welcome to shbcf.ru