結果 : javascript ternary operator not working