javascript typeof 运算符 JavaScript 数组 unshift 方法 JavaScript 日期构造方法constructor属性 javascript typeof 运算符 <html> <body> <script type = "text/javascript"> <!-- var a = 10; var b = "String"; var linebreak = "<br />"; result = (typeof b == "string" ? "B is String" : "B is Numeric"); document.write("Result => "); document.write(result); document.write(linebreak); result = (typeof a == "string" ? "A is String" : "A is Numeric"); document.write("Result => "); document.write(result); document.write(linebreak); //--> </script> <p>Set the variables to different values and different operators and then try...</p> </body> </html> JavaScript 数组 unshift 方法 JavaScript 日期构造方法constructor属性