JavaScript Tutorial in Hindi part 11: Function in JavaScript in Hindi | JavaScript Functions

preview_player
Показать описание
Welcome All, we will see function in javascript in hindi. A JavaScript function is a block of code designed to perform a particular task.

A JavaScript function is executed when "something" invokes it (calls it).

JavaScript Function Syntax
A JavaScript function is defined with the function keyword, followed by a name, followed by parentheses ().

Function names can contain letters, digits, underscores, and dollar signs (same rules as variables).

The parentheses may include parameter names separated by commas:
(parameter1, parameter2, ...)

The code to be executed, by the function, is placed inside curly brackets: {}

Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

Don't Forget to Follow me on all Social Network,

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

Thapaaa bhai १०-१२ video k baad agar clear huwa hai to aapki video mai 🔥🔥🔥🔥🔥❤️❤️❤️❤️❤️❤️

AbsurdFun
Автор

waaw ..mujhe return vala process aaj tk smj nhi aaya lekin aaj aapki video dekh k smj aagya ..thnkyou sir

pooja.yadav.
Автор

Boom guys 🔥🔥😀👍

Thanks a lot big bro ❤️❤️

theultimateakm
Автор

i want to say that your videos is to helfull, you are doing great work i have appreciated your hardwork .

Naveen-hjvx
Автор

Best video for understanding functions

aliasgarghiyawadwala
Автор

return ka concept samjh me nahi aya. guide ap buhut acha karte hein thanku

itsusamaofficial
Автор

Great and help full channel . Sir rply in instagram because I have a problem so I think u can solve it in better way🙂🙂

manishbhandari
Автор

sir apka samjhane ka tarika dekh ke subscribe karna pada bhut acche se samjhate hai

Santosh_Djas
Автор

thank you so much for sharing your knowledge with us👋👍 ... Your videos are very helpful....❤
I have a question
if we want to enter two numbers from user from input fields how we can add these numbers using function how can we pass these numbers???

faiqanadeem
Автор

Sir g Program hamesha user friendly hona chahiye...
User ko zyada prefrence deni chahiye. User jo b number dena chahiye...
Input from user command

earning_big
Автор

sir
function sum(a, b){
var add=a+b;
document.write(add +"<br>");//iska output 30 aayega but

//Iska output kya aayega
}
sum(10, 20);

munjasakhare
Автор

sir return me problem hai thodi si
please again explain

solutionhere
Автор

Function to zara bhi nhi samjh nhi aya... Pls.. koi samjha sakta h

mmtourntravel
Автор

sir mujhe return function clear nhi hua please thoda or clear kro

vaibhavsharma
Автор

<form>
Enter no 1 : <input type="text" id="a" name="">
<br><br>
Enter no 2 : <input type="text" id="b" name="">
<br><br>
<button
</form>
<script>
function calculator(){
var
var
var sum= num1+num2;
document.write(sum);
}
</script>

I can't get sum pls tell what I am doing wrong??

faiqanadeem
Автор

function subtotal(math, eng, sc, hi, sans){
var total = math + eng + sc + hi + sans;
return total;
}
function percentage(total) {
var per = total/500 * 100;
document.write(per);
}
var result =subtotal(63, 84, 32, 65, 45);
percentage(result)
. in this code i want to know is the total from subtotal function same total which is used in the percentage funciton if thats the case it makes sense the subtotal is returning a value total and the percentage fucntion is using it in its parameter MY QUESTION IS WHY AND HOW ...OR WHAT IS IT CALLED BECAUSE BOTH FUNCTION HAVE DIFFERENT SCOPES... Sir I need your Gudience....please

bijaylama
Автор

sir ye return ka samaj nahi aya .to plz ye zara samjadegie ga.plz plz

sadiqrahman
Автор

Var me add kiya fir add to return kiya to add return hokr kaha jayegi value

SadikKhan-lpnz
Автор

Sir return ka n samjh aaya kisly use hota h plz btaiye

lovelyaggarwal