-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBasicFunctionInJS.js
More file actions
31 lines (26 loc) · 576 Bytes
/
BasicFunctionInJS.js
File metadata and controls
31 lines (26 loc) · 576 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//asic Function Declaration
function aman() {
console.log("Hello mere bhai")
}
aman()
function anup(){
console.log("Hello Kya kr rahe hoo")
}
anup();
//Function with Parameters
//Parameters let you pass values into a function.
function greet(name) {
console.log("Hello " + name);
}
greet("Anup");
greet("Rahul");
function greet(name) {
console.log("Hello " + name);
}
greet('Anup');
greet("Abhishek");
function abhishek(name) {
console.log("Hello " + name);
}
abhishek("Kya kr rha hai");
abhishek("kya kr rahe ho tum"); //Call the function OutSide