JS For Loop

 
<!DOCTYPE html>
<html>
<head>
  <title>JavaScript</title>
  <script>
    for(var x = 1; x <= 10; x++){
       document.write("Hello Yahoo Baba <br>");
    }
  </script>
</head>
<body>
</body>
</html>