WhileStatement WhileStatement const a = true; let b; while(!a) { b = 2; } do { b++; } while(!a); console.log(a, b); $a = true; $b; while (!$a) { $b = 2; } do { $b++; } while (!$a); echo $a, $b;