let distance = 90; // try changing this value to test different outputs output = distance < 3 ? "Almost there": "yuh gotta wait a little" console.log(output);
let distance = 2; // try changing this value to test different outputsif (distance < 3) {console.log("ALMOST THERE!");}if (distance > 3) {let brake = 0;let gas = 5;console.log("yuh gotta wait a little");}- let distance = 90; // try changing this value to test different outputs
- output = distance < 3 ? "Almost there": "yuh gotta wait a little"
- console.log(output);