結果 : how to write nested ternary operator in javascript