🔃ও্যাইয়ল লুপ (While Loop)
while(condtion){
//statement
}//while loop syntex
do {
//statement
} while (condtion);let counter=0;
while(conuter<10){
console.log(++counter+"\n");
}
output:
1
2
3
4
5
6
7
8
9
10Last updated
while(condtion){
//statement
}//while loop syntex
do {
//statement
} while (condtion);let counter=0;
while(conuter<10){
console.log(++counter+"\n");
}
output:
1
2
3
4
5
6
7
8
9
10Last updated
let counter=0;
do{
console.log(++counter+"\n")
}while(counter<10);
output:
1
2
3
4
5
6
7
8
9
10