Hlo friends welcome to my channel, if you like this video pls press the subsribe button and like button,and share this video to all over your friends also as it takes so much effort of us your some contribution help us lots.
★ ★ You can help us ★ ★
1.By Subscribing Channel URL :: / letslearnfriends
2. Must be uploading good quality content frequently to your YouTube Channel and really trying hard to make it .
3. Must be engaged in my channel by liking, commenting, posting, sharing and encouraging others to subscribe to my channel.
▼ Follow me
follow us on ::blogger :knowledgetalks1.blogspot.com
twitter:: / letslea27575669
Topic which are been covered in these videos---
Functions in JavaScript
A function is a set of statements that take inputs, do some specific computation and produces output. Basically, a function is a set of statements that performs some tasks or does some computation and then returns the result to the user.
The idea is to put some commonly or repeatedly done task together and make a function so that instead of writing the same code again and again for different inputs, we can call that function.
Like other programming languages, JavaScript also supports the use of functions. You must already have seen some commonly used functions in JavaScript like alert(), this is a built-in function in JavaScript. But JavaScript allows us to create user-defined functions also.
We can create functions in JavaScript using the keyword function. The basic syntax to create a function in JavaScript is shown below.
Syntax:
function functionName(Parameter1, Parameter2, ..)
{
// Function body
}
To create a function in JavaScript, we have to first use the keyword function, separated by name of function and parameters within parenthesis. The part of function inside the curly braces {} is the body of the function.
Function Definition
Before, using a user-defined fuction in JavaScript we have to create one. We can use the above syntax to create a function in JavaScript. Function definition are sometimes also termed as function declaration or function statement.
Below are the rules for creating a function in JavaScript:
Every function should begin with the keyword function followed by,
A user defined function name which should be unique,
A list of parameters enclosed within paranthesis and separated by commas,
A list of statement composing the body of the function enclosed within curly braces {}.
Nesta página do site você pode assistir ao vídeo on-line JAVASCRIPT SELF INVOKING FUNCTION || FUNCTION ARE OBJECTS ||ARROW FUNCTION duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Let's Learn With Us 08 Setembro 2019, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 44 vezes e gostou like espectadores. Boa visualização!