New to javascript so please be kind.

I am trying to loop over a all the elements in the "wrapper" class to show each element for x amount of time. This code just shows all elements at once.

HTML

```
<!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">
  <link rel="stylesheet" href="./style.css">
  <title>Cell One</title>
</head>
<body>
  <div class="wrapper">
    <div class="x" id="inner">
      <p>Test</p>
    </div>
    <div class="x" id="inner">
      <p>Testing</p>
    </div>
  </div>
  <script src="./main.js"></script>
</body>
</html>

```

Javascript

```
var divOne = document.getElementsByClassName('x')
console.log(divOne.length)

for (let i=0, len = divOne.length; i < len; i++) {
  setTimeout(() => {
    divOne[i].style.display = 'none';
  }, 5000)
}

```