Javascript do while loop

Do while loop run at least once because it checked at the end of the iteration.

Syntax:-


 do{
   // logic
} while(condition)

Example:-


var i=1
do{
	
 console.log(i);
  i++;

}while(i<5);
Output:-
1
2
3
4
5