-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtuple_iter.js
More file actions
19 lines (19 loc) · 779 Bytes
/
tuple_iter.js
File metadata and controls
19 lines (19 loc) · 779 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var customer = [12101, "Nisham", 24, "nisg45@gmail.com"];
console.log(customer);
var customers = [];
customers[0] = 13018;
customers[1] = "venkat";
customers[2] = "23";
customers[3] = "venbox@gmail.com";
console.log("Customer id is:" + customers[0]);
console.log("Customer name is:" + customers[1]);
console.log("Customer age is:" + customers[2]);
console.log("Customer mail-id is:" + customers[3]);
console.log("length of tuple" + customers.length);
customers.push(9176558476);
console.log("added one item to customers" + " " + customers);
console.log("length of customers after adding one element" + " " + customers.length);
customers[2] = 26;
console.log("updating age of customer" + " " + customers);
customers.pop();
console.log("pop" + " " + customers);