The code looks much cleaner. In general, the syntax of the ternary operator is as follows: condition ? expression_1 : expression_2;. The JavaScript ternary ...
確定! 回上一頁