結果 : convert if else to ternary operator in javascript