anonymous No title
No License JavaScript
2021年04月25日
Copy Clone
<!DOCTYPE html>
<html lang="ja">
<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>
    <script type="text/javascript">
    
    for (let n=1; n<=100  ;n++)
   {
        if (n % 15 == 0){
            document.write("FizzBuzz" + "<br>" );
        }
            else if(n % 5 == 0){
                document.write("Buzz" + "<br>" );
            }
            else if(n % 3 == 0){
                document.write("Fizz" + "<br>" );
            }

        else {
        document.write(n  + "<br>" );
        }
   }
        //document.write("FizzBuzz");
    </script>
</body>
</html>
<!DOCTYPE html>
<html lang="ja">
<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>
    <script type="text/javascript">
    
    for (let n=1; n<=100  ;n++)
   {
        if (n % 15 == 0){
            document.write("FizzBuzz" + "<br>" );
        }
            else if(n % 5 == 0){
                document.write("Buzz" + "<br>" );
            }
            else if(n % 3 == 0){
                document.write("Fizz" + "<br>" );
            }

        else {
        document.write(n  + "<br>" );
        }
   }
        //document.write("FizzBuzz");
    </script>
</body>
</html>
No one still commented. Please first comment.
Output