Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 244 Bytes

WhileStatement.md

File metadata and controls

29 lines (25 loc) · 244 Bytes

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;