I am a new learner and am unable to understand time complexity of if else statement. I have read online that time complexity for if-else is given in both max and min terms.
As per my understanding both max and min would be O(1), but some websites share otherwise and I am unable to understand it. Thank you.
Function copy(number)
If number == 3
console.log("number is 3");
Else
console.log("number is not 3");