📅  最后修改于: 2022-03-11 15:02:57.793000             🧑  作者: Mango
function myFuntionName(condition) {
//this example uses an if statement
if (condition) {
//code
}
}
//call the function
let a = 8;
myFunctionName(a > 7);//a > 7 is converted into boolean before it is processed in the function