English, asked by chandragoudamk, 2 months ago

2. var details=["Sachin",true,10,'Batsman)
var res=details.push(1973)
console.log(res)​

Answers

Answered by yuvrajmayekar1111
1

Answer:

var details=["sachin",true,10,'Batsman'];

var res=details.push(1973);

console.log(res);

var ar=['a','z','c','d'];

console.log(ar.slice(2,2));

var a=(Math.ceil(Math.random()*100));

console.log(a);

var x=100/0;

console.log(x);

var a="hello";

var b="hi";

console.log(a/b);

var ar=[20,30,40,50];

ar.unshift(60);

console.log(ar);

var c=["A","y","c","z"];

console.log(Array.isArray(c));

Similar questions