current work
This commit is contained in:
17
4/ifelse.html
Normal file
17
4/ifelse.html
Normal file
@ -0,0 +1,17 @@
|
||||
<html><body><script>
|
||||
|
||||
let speed = 20;
|
||||
|
||||
console.log(`Your current speed is ${speed} mph.`);
|
||||
|
||||
if (speed > 25) {
|
||||
|
||||
console.log("Slow down!");
|
||||
|
||||
} else {
|
||||
|
||||
console.log("You're obeying the speed limit.");
|
||||
|
||||
}
|
||||
|
||||
</script></body></html>
|
Reference in New Issue
Block a user