<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <H1 id="H1"></H1>
    <input type="button" id="Button1" onclick="ArrayDisplay()" value="Click Me">

    <script>
        function ArrayDisplay()
        {
            const cars=["Fiat", "Volvo", "BMW"];
            document.getElementById("H1").innerHTML=cars[0] + " and " + cars[1];

            const scores=new Array(55,20,35,10,45);
            document.getElementById("H1").innerHTML=scores[0]+scores[1]+scores[2]+scores[3]+scores[4];

            scores.sort();
            document.getElementById("H1").innerHTML=scores;
        }
    </script>
</body>
</html>