How do I swap the values of my function?
AndresHaro1 (0)

function roadRage() {
let rightLane = "Chevy";
let leftLane = "Honda";

//Write your code here to make the cars switch lanes
let Chevy = leftLane;
let Honda = rightLane;
return (`That ${rightLane} and ${leftLane} won't pick a lane`)

}

roadRage();

You are viewing a single comment. View All
Answered by SolarBoom (71) [earned 5 cycles]
View Answer
AndresHaro1 (0)

@SolarBoom You answer more of what I was expecting.

With all this info, I was able to solve my issue. Now the best result is to type the following code:

//Write your code here to make the cars switch lanes
[rightLane, leftLane] = [leftLane, rightLane]