js/4/if.html
2024-09-17 14:41:00 -05:00

12 lines
201 B
HTML

<html>
<body>
<script> let speed = 30;
console.log(`Your current speed is ${speed} mph.`);
if (speed > 25) {
console.log("Slow down!");
}
</script></body></html>