Array Question
Q1.Span Of Array
here we need to find the diffrenct between max and min
we have 2 ways
1)sort the array
2)with the help of for loop
let data = [12,23,232,14];
data.sort(function (a,b) {return a-b})
let diff = data[data.length-1] - data[0];
console....
devbunney.hashnode.dev2 min read