1function myFuntionName(condition) {
2 //this example uses an if statement
3 if (condition) {
4 //code
5 }
6}
7
8//call the function
9let a = 8;
10myFunctionName(a > 7);//a > 7 is converted into boolean before it is processed in the function