結果 : how to use return in ternary operator javascript