結果 : ternary operator in javascript with multiple conditions