JavaScript Do While Loop

 ------------------------------------------   index.html ----------------------------------------

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1>This is tutorial </h1>
</body>
<script src="Script.js"></script>
</html>
-----------------------------------------
------------------------------------------------ Script.js ------------------------------

console.log('tutorial for while loop ')

let k = 90;
do {
console.log( k + 1);
k +=1;

}while(k < 10);

Comments

Popular posts from this blog

React Native FlatList

React Native class component