-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.js
51 lines (41 loc) · 1.13 KB
/
functions.js
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// function f1(){
// let name="Samarpit";
// let age=15;
// let ismale=true;
// let Permanent_address=undefined
// let absenties=null
// let number=2.33333
// }
// function AddTwoNumbers(number1,number2)
// {
// return `the sum of ${number1} and ${number2} is ${number1+number2}`
// }
// const Result=AddTwoNumbers(2,8)
// console.log(Result);
// function Login(username) {
// return `${username} is logged in`
// }
// Login("Samartpit")//only returning the value
// console.log(Login("Samarpit"));//printing the returned value
// function CalculatePrisage(num1,num2,num3,...num4) {
// return num4
// }
// console.log(CalculatePrisage(100,200,300,400,5000,600,700,));
// const Order={
// Name:"Samarpit",
// Price:300
// }
// function handleobect(anyobject) {
// console.log(`the name of the customer is ${anyobject.Name} and the price is ${anyobject.Price}`);
// }
// handleobect(
// {
// Name:"Aadarsh",
// Price:500
// })
const myNewArray=[100,200,300,400]
function ReturningArray(getinsdex)
{
return getinsdex[3]
}
console.log(ReturningArray(myNewArray))