当前位置: 代码迷 >> JavaScript >> JavaScript - All Literals
  详细解决方案

JavaScript - All Literals

热度:188   发布时间:2012-09-22 21:54:54.0
JavaScript ---- All Literals
12                       // The number twelve

1.2                      // The number one point two

"hello world"            // A string of text

'Hi'                     // Another string

true                     // A Boolean value

false                    // The other Boolean value

/javascript/gi           // A "regular expression" literal (for pattern matching)

null                     // Absence of an object

{ x:1, y:2 }             // An object initializer

[1,2,3,4,5]              // An array initializer
  相关解决方案