JSFiddle - React, Tailwind, and code Playground

by ovo1381

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>loop and Array</title>
</head>
<body>
  <h1>coworkers</h1>
  <script>
  	var coworkers = ["hello", "nice", "to", "meet", "you"];
    
    
  </script>
  <ul>
  <script>
  var i = 0;
  while(i<4){
    document.write('<li>'+ coworkers.eq[i] +'</li>');
    i=i+1;
    }
  </script>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
  </ul>
</body>
</html>