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