Learn JavaScript (Tutorial 7)

Опубликовано: 04 Март 2025
на канале: WEBoLOGY. in
21
1

Presented by: Aakash Biswas

Duration: 12.00 minutes

Watch Tutorial 1:    • Learn JavaScript (Tutorial 1)  
Watch Tutorial 2:    • Learn JavaScript (Tutorial 2)  
Watch Tutorial 3:    • Learn JavaScript (Tutorial 3)  
Watch Tutorial 4:    • Learn JavaScript (Tutorial 4)  
Watch Tutorial 5:    • Learn JavaScript (Tutorial 5)  
Watch Tutorial 6:    • Learn JavaScript (Tutorial 6)  


Functions
A function is a block of code designed to perform a particular task.
A function is defined with the function keyword, followed by a name, followed by parentheses.
Function names can contain letters, digits, underscores, and dollar signs.
The parentheses can have parameter separated by commas.

When a function reaches a return statement it will stop executing the block of code.
The return statement returns a value.
If the function was invoked from a statement, JavaScript will return to execute the code after the invoking statement.
Functions often compute a return value.
The return value is returned back to the caller.