Guest User

Untitled

a guest
Nov 18th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="Datatypes (Simple & Complex)" content="[Datatypes (Simple & Complex)]">
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width">
  7. <title>JS Bin</title>
  8. </head>
  9. <body>
  10. /*
  11. Datatypes (Simple & Complex)
  12.  
  13. Ok lets start with Simple Data Types
  14. Simple Data Types Are Numbers, String, Boolean, Undefined, Null, and Nan.
  15. These particular data types are Primitive data types, they are atomic which are
  16. booleans, integers, characters and floats. Simple data types are also Immuatable
  17. which means they can bet changed. take note that they do not hold, collect, or
  18. aggregate other values. These data types are copy by value.
  19.  
  20. // so lets create a brief list on the definition of these data types:
  21.  
  22. Numbers consist of numeric data
  23. exp 1,2,3,4 etc
  24.  
  25. Strings consit of character data
  26. exp "hey liv updating studies"
  27.  
  28. Boolean consit of true or false
  29. exp var outStandingHuman = true
  30.  
  31. undefined consit of not having a value;
  32. exp var iHaveNoValue;
  33.  
  34. null is when you have variables that dosnt point to anything;
  35. exp var grace = "i am null";
  36. grace; "i am null";
  37.  
  38. NaN basicaly is the abreviation for not a number
  39. exp isNan("a"); this should tell you not a number
  40.  
  41. infinity: Thee is positive infinity and negative infinity. positive
  42. infinity is greater than any other number so negative infinity is less
  43. then any other number. Anything you add or multiply to infinity is infinity.
  44. Anything you subtract or divide from infinity is -infinity.
  45.  
  46. /*
  47. Complex Data Types
  48. Complex Data Types consist of Arrays, Objects, and functions
  49. Now these data types aggregate other values and are copy by reference.
  50. Another thing to note is that complex data types are indefinit in size.
  51.  
  52. // So lets give a brief definition of these data types
  53.  
  54. Arrays are a fixed size and operates on a numbered index system and our
  55. syntax for these arrays are bracket notation [].
  56.  
  57. Objects are collections of data which can hold pretty much every data type
  58. inside of our objects. Also these objects can expand indefintly in size)
  59.  
  60. Function: Functions are a set if statements that calculates values with blocks of code
  61. to be executed by invoking or calling a function. */
  62.  
  63. */
  64. <script id="jsbin-javascript">
  65. Datatypes (Simple & Complex)
  66.  
  67. Ok lets start with Simple Data Types
  68. Simple Data Types Are Numbers, String, Boolean, Undefined, Null, and Nan.
  69. These particular data types are Primitive data types, they are atomic which are
  70. booleans, integers, characters and floats. Simple data types are also Immuatable
  71. which means they can bet changed. take note that they do not hold, collect, or
  72. aggregate other values. These data types are copy by value.
  73.  
  74. // so lets create a brief list on the definition of these data types:
  75.  
  76. Numbers consist of numeric data
  77. exp 1,2,3,4 etc
  78.  
  79. Strings consit of character data
  80. exp "hey liv updating studies"
  81.  
  82. Boolean consit of true or false
  83. exp var outStandingHuman = true
  84.  
  85. undefined consit of not having a value;
  86. exp var iHaveNoValue;
  87.  
  88. null is when you have variables that dosnt point to anything;
  89. exp var grace = "i am null";
  90. grace; "i am null";
  91.  
  92. NaN basicaly is the abreviation for not a number
  93. exp isNan("a"); this should tell you not a number
  94.  
  95. infinity: Thee is positive infinity and negative infinity. positive
  96. infinity is greater than any other number so negative infinity is less
  97. then any other number. Anything you add or multiply to infinity is infinity.
  98. Anything you subtract or divide from infinity is -infinity.
  99.  
  100. /*
  101. Complex Data Types
  102. Complex Data Types consist of Arrays, Objects, and functions
  103. Now these data types aggregate other values and are copy by reference.
  104. Another thing to note is that complex data types are indefinit in size.
  105.  
  106. // So lets give a brief definition of these data types
  107.  
  108. Arrays are a fixed size and operates on a numbered index system and our
  109. syntax for these arrays are bracket notation [].
  110.  
  111. Objects are collections of data which can hold pretty much every data type
  112. inside of our objects. Also these objects can expand indefintly in size)
  113.  
  114. Function: Functions are a set if statements that calculates values with blocks of code
  115. to be executed by invoking or calling a function.
  116. </script>
  117.  
  118.  
  119.  
  120. <script id="jsbin-source-javascript" type="text/javascript">Datatypes (Simple & Complex)
  121.  
  122. Ok lets start with Simple Data Types
  123. Simple Data Types Are Numbers, String, Boolean, Undefined, Null, and Nan.
  124. These particular data types are Primitive data types, they are atomic which are
  125. booleans, integers, characters and floats. Simple data types are also Immuatable
  126. which means they can bet changed. take note that they do not hold, collect, or
  127. aggregate other values. These data types are copy by value.
  128.  
  129. // so lets create a brief list on the definition of these data types:
  130.  
  131. Numbers consist of numeric data
  132. exp 1,2,3,4 etc
  133.  
  134. Strings consit of character data
  135. exp "hey liv updating studies"
  136.  
  137. Boolean consit of true or false
  138. exp var outStandingHuman = true
  139.  
  140. undefined consit of not having a value;
  141. exp var iHaveNoValue;
  142.  
  143. null is when you have variables that dosnt point to anything;
  144. exp var grace = "i am null";
  145. grace; "i am null";
  146.  
  147. NaN basicaly is the abreviation for not a number
  148. exp isNan("a"); this should tell you not a number
  149.  
  150. infinity: Thee is positive infinity and negative infinity. positive
  151. infinity is greater than any other number so negative infinity is less
  152. then any other number. Anything you add or multiply to infinity is infinity.
  153. Anything you subtract or divide from infinity is -infinity.
  154.  
  155. /*
  156. Complex Data Types
  157. Complex Data Types consist of Arrays, Objects, and functions
  158. Now these data types aggregate other values and are copy by reference.
  159. Another thing to note is that complex data types are indefinit in size.
  160.  
  161. // So lets give a brief definition of these data types
  162.  
  163. Arrays are a fixed size and operates on a numbered index system and our
  164. syntax for these arrays are bracket notation [].
  165.  
  166. Objects are collections of data which can hold pretty much every data type
  167. inside of our objects. Also these objects can expand indefintly in size)
  168.  
  169. Function: Functions are a set if statements that calculates values with blocks of code
  170. to be executed by invoking or calling a function.
  171. </script></body>
  172. </html>
Add Comment
Please, Sign In to add comment