Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="Datatypes (Simple & Complex)" content="[Datatypes (Simple & Complex)]">
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width">
- <title>JS Bin</title>
- </head>
- <body>
- /*
- Datatypes (Simple & Complex)
- Ok lets start with Simple Data Types
- Simple Data Types Are Numbers, String, Boolean, Undefined, Null, and Nan.
- These particular data types are Primitive data types, they are atomic which are
- booleans, integers, characters and floats. Simple data types are also Immuatable
- which means they can bet changed. take note that they do not hold, collect, or
- aggregate other values. These data types are copy by value.
- // so lets create a brief list on the definition of these data types:
- Numbers consist of numeric data
- exp 1,2,3,4 etc
- Strings consit of character data
- exp "hey liv updating studies"
- Boolean consit of true or false
- exp var outStandingHuman = true
- undefined consit of not having a value;
- exp var iHaveNoValue;
- null is when you have variables that dosnt point to anything;
- exp var grace = "i am null";
- grace; "i am null";
- NaN basicaly is the abreviation for not a number
- exp isNan("a"); this should tell you not a number
- infinity: Thee is positive infinity and negative infinity. positive
- infinity is greater than any other number so negative infinity is less
- then any other number. Anything you add or multiply to infinity is infinity.
- Anything you subtract or divide from infinity is -infinity.
- /*
- Complex Data Types
- Complex Data Types consist of Arrays, Objects, and functions
- Now these data types aggregate other values and are copy by reference.
- Another thing to note is that complex data types are indefinit in size.
- // So lets give a brief definition of these data types
- Arrays are a fixed size and operates on a numbered index system and our
- syntax for these arrays are bracket notation [].
- Objects are collections of data which can hold pretty much every data type
- inside of our objects. Also these objects can expand indefintly in size)
- Function: Functions are a set if statements that calculates values with blocks of code
- to be executed by invoking or calling a function. */
- */
- <script id="jsbin-javascript">
- Datatypes (Simple & Complex)
- Ok lets start with Simple Data Types
- Simple Data Types Are Numbers, String, Boolean, Undefined, Null, and Nan.
- These particular data types are Primitive data types, they are atomic which are
- booleans, integers, characters and floats. Simple data types are also Immuatable
- which means they can bet changed. take note that they do not hold, collect, or
- aggregate other values. These data types are copy by value.
- // so lets create a brief list on the definition of these data types:
- Numbers consist of numeric data
- exp 1,2,3,4 etc
- Strings consit of character data
- exp "hey liv updating studies"
- Boolean consit of true or false
- exp var outStandingHuman = true
- undefined consit of not having a value;
- exp var iHaveNoValue;
- null is when you have variables that dosnt point to anything;
- exp var grace = "i am null";
- grace; "i am null";
- NaN basicaly is the abreviation for not a number
- exp isNan("a"); this should tell you not a number
- infinity: Thee is positive infinity and negative infinity. positive
- infinity is greater than any other number so negative infinity is less
- then any other number. Anything you add or multiply to infinity is infinity.
- Anything you subtract or divide from infinity is -infinity.
- /*
- Complex Data Types
- Complex Data Types consist of Arrays, Objects, and functions
- Now these data types aggregate other values and are copy by reference.
- Another thing to note is that complex data types are indefinit in size.
- // So lets give a brief definition of these data types
- Arrays are a fixed size and operates on a numbered index system and our
- syntax for these arrays are bracket notation [].
- Objects are collections of data which can hold pretty much every data type
- inside of our objects. Also these objects can expand indefintly in size)
- Function: Functions are a set if statements that calculates values with blocks of code
- to be executed by invoking or calling a function.
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">Datatypes (Simple & Complex)
- Ok lets start with Simple Data Types
- Simple Data Types Are Numbers, String, Boolean, Undefined, Null, and Nan.
- These particular data types are Primitive data types, they are atomic which are
- booleans, integers, characters and floats. Simple data types are also Immuatable
- which means they can bet changed. take note that they do not hold, collect, or
- aggregate other values. These data types are copy by value.
- // so lets create a brief list on the definition of these data types:
- Numbers consist of numeric data
- exp 1,2,3,4 etc
- Strings consit of character data
- exp "hey liv updating studies"
- Boolean consit of true or false
- exp var outStandingHuman = true
- undefined consit of not having a value;
- exp var iHaveNoValue;
- null is when you have variables that dosnt point to anything;
- exp var grace = "i am null";
- grace; "i am null";
- NaN basicaly is the abreviation for not a number
- exp isNan("a"); this should tell you not a number
- infinity: Thee is positive infinity and negative infinity. positive
- infinity is greater than any other number so negative infinity is less
- then any other number. Anything you add or multiply to infinity is infinity.
- Anything you subtract or divide from infinity is -infinity.
- /*
- Complex Data Types
- Complex Data Types consist of Arrays, Objects, and functions
- Now these data types aggregate other values and are copy by reference.
- Another thing to note is that complex data types are indefinit in size.
- // So lets give a brief definition of these data types
- Arrays are a fixed size and operates on a numbered index system and our
- syntax for these arrays are bracket notation [].
- Objects are collections of data which can hold pretty much every data type
- inside of our objects. Also these objects can expand indefintly in size)
- Function: Functions are a set if statements that calculates values with blocks of code
- to be executed by invoking or calling a function.
- </script></body>
- </html>
Add Comment
Please, Sign In to add comment