<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    // while 和 do while

    // i = 5;
    // while (i<5){
    //     console.log(i);
    //     i++;
    // }

    i = 5;
    do {
        console.log(i);
        i++;
    }while (i<5);

</script>
</body>
</html>