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 {}.
On this page of the site you can watch the video online JAVASCRIPT SELF INVOKING FUNCTION || FUNCTION ARE OBJECTS ||ARROW FUNCTION with a duration of hours minute second in good quality, which was uploaded by the user Let's Learn With Us 08 September 2019, share the link with friends and acquaintances, this video has already been watched 44 times on youtube and it was liked by like viewers. Enjoy your viewing!