JavaScript: mencoba membuat teks menghasilkan secara acak

let sentenceArray = [
  "Fun fact about me, I love video games, I have been playing video games since I was 10 years old",
  "I want to be a front end developer because creating and the building is a passion of mine",
  "You should really look at the projects I built, you can get a good look at my skillsets"
];

const el = document.querySelector(".speech-bubble p");

setInterval(() => {
  const random = Math.floor(Math.random() * sentenceArray.length);
  el.innerText = sentenceArray[random];
}, 2000);
<!DOCTYPE html>
<html>

<head>
    <title>Parcel Sandbox</title>
    <meta charset="UTF-8" />
</head>

<body>
    <div class = "speech-bubble">
        <p>Hi there, as you can see I am Sheldon Aldridge</p>
    </div>
</div>
</body>

</html>
SAMER SAEID