📅  最后修改于: 2022-03-11 15:02:26.900000             🧑  作者: Mango
// If statement
// if (condition) //code
if (5 > 3) return "Is greater"; // "Is greater"
// If else statement
// (condition) ? if : else
let res = (1 > 3) ? "is greater" : "is less than";// "is less than"