Javascript 条件运算符 JavaScript 数组 reduceRight 方法 JavaScript 数组反转 reverse Javascript 条件运算符 <html> <body> <script type="text/javascript"> <!-- var a = 10; var b = 20; var linebreak = "<br />"; document.write ("((a > b) ? 100 : 200) => "); result = (a > b) ? 100 : 200; document.write(result); document.write(linebreak); document.write ("((a < b) ? 100 : 200) => "); result = (a < b) ? 100 : 200; document.write(result); document.write(linebreak); //--> </script> <p>Set the variables to different values and different operators and then try...</p> </body> </html> JavaScript 数组 reduceRight 方法 JavaScript 数组反转 reverse