current work
This commit is contained in:
11
4/while.html
Normal file
11
4/while.html
Normal file
@ -0,0 +1,11 @@
|
||||
<html>
|
||||
<body>
|
||||
<script>
|
||||
let speed = 50;
|
||||
while (speed > 25) {
|
||||
console.log(`Your current speed is ${speed} mph.`);
|
||||
speed--;
|
||||
}
|
||||
console.log(`Now your speed is ${speed} mph.`);
|
||||
|
||||
</script></body></html>
|
Reference in New Issue
Block a user