filmov
tv
JavaScript Functions | JavaScript Types of Function - JavaScript Tutorial 58

Показать описание
Notes for You:: JavaScript Types of Function.
- Any function created using different ways of creating JavaScript functions, will be of one of the below mentioned type.
1. A function without parameters and without returning value:
Ex:
function wishHi(){
}
wishHi(); // Hi
2. A function without parameters and with returning value:
Ex:
function wishHi(){
return "Hi";
}
3. A function with parameters and without returning value:
Ex:
function wish(what){
}
wish(“good morning"); // good morning
Ex:
function add(num1,num2){
}
add(2,2); // 4
4. A function with parameters and with return value:
Ex:
function square(x){
return (x*x);
}
Note:
- replace < with less-than symbol.
- replace > with greater-than symbol.
=========================================
Follow the link for next video:
JavaScript Tutorial 59 - Function Expressions in JavaScript | JavaScript Function Expressions
Follow the link for previous video:
JavaScript Tutorial 57 - Functions in JavaScript | JavaScript Function Declaration
=========================================
JavaScript Tutorials Playlist:-
=========================================
Watch My Other Useful Tutorials:-
jQuery Tutorials Playlist:-
jQuery UI Tutorials Playlist:-
Bootstrap Tutorials Playlist:-
=========================================
► Subscribe to our YouTube channel:
► Visit our Website:
=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial
- Any function created using different ways of creating JavaScript functions, will be of one of the below mentioned type.
1. A function without parameters and without returning value:
Ex:
function wishHi(){
}
wishHi(); // Hi
2. A function without parameters and with returning value:
Ex:
function wishHi(){
return "Hi";
}
3. A function with parameters and without returning value:
Ex:
function wish(what){
}
wish(“good morning"); // good morning
Ex:
function add(num1,num2){
}
add(2,2); // 4
4. A function with parameters and with return value:
Ex:
function square(x){
return (x*x);
}
Note:
- replace < with less-than symbol.
- replace > with greater-than symbol.
=========================================
Follow the link for next video:
JavaScript Tutorial 59 - Function Expressions in JavaScript | JavaScript Function Expressions
Follow the link for previous video:
JavaScript Tutorial 57 - Functions in JavaScript | JavaScript Function Declaration
=========================================
JavaScript Tutorials Playlist:-
=========================================
Watch My Other Useful Tutorials:-
jQuery Tutorials Playlist:-
jQuery UI Tutorials Playlist:-
Bootstrap Tutorials Playlist:-
=========================================
► Subscribe to our YouTube channel:
► Visit our Website:
=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial
Комментарии