結果 : how to use else if in ternary operator javascript