<!DOCTYPE html>
<html lang="en">
<head>
<title>D3js</title>
<script src="https://d3js.org/d3.v6.min.js"></script>
</head>
<body>
<script>
var data = [10,20,30,40,50];
</script>
</body>
</html>
> data.shift(); //shift gives me the first value in the array
< 10
> data.sort(d3.descending); //get data by descending
< [50, 40, 30, 20] (4)
> d3.min(data);
< 10
> d3.extent(data); //extent gives me both minimum and maximum value
< [10, 50] (2)
> d3.shuffle(data); //it shuffles around the values in array, random order
< [50, 30, 10, 20, 40] (5)