結果 : how to use nested ternary operator in javascript