Anonymous ID: 0db6e0 March 30, 2021, 1:45 p.m. No.13331632   🗄️.is 🔗kun

>>13331599

wasThatTrue is just the name of the local variable. It's scope is limited to only inside that function call.

 

function trueOrFalse(imNotWearingAnyPants) {

if (imNotWearingAnyPants) {

return “Yes, that was true”;

}

return “No, that was false”;

}

 

console.log(trueOrFalse(true));