結果 : throw new error in ternary javascript