//if there is complex statement use if statement //otherwise ternary operator will be best to use. condition ? true Condition : false Condition 9<10 ? "small":"bigger" // small code run