結果 : only if condition in ternary operator javascript