1const condition = true;
2// (condition) ? if : else
3(condition) ? console.log("it is true") : console.log("it is false");
1// If statement
2// if (condition) //code
3if (5 > 3) return "Is greater"; // "Is greater"
4
5// If else statement
6// (condition) ? if : else
7let res = (1 > 3) ? "is greater" : "is less than";// "is less than"