I have a button which will call the function that contains the array and will shuffle it and return the first array after the click: Button:
<button onclick="show()">
    click
</button>
My Js:
<script>
const cars = [1,2,3,4,5,6,7,8]; 
</script>
 
    