Created
July 5, 2016 03:35
-
-
Save edinsoncs/7191cbfc2e5c0fc24d07a08a296cfe98 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Javascript orientate objects</title> | |
| </head> | |
| <body> | |
| <script> | |
| /** | |
| * [GLOBAL_STRING description] | |
| * @type {String} | |
| */ | |
| var GLOBAL_STRING = "hello my name is edinson"; | |
| var stringNew = new String('hello my name is edinson'); | |
| console.log(GLOBAL_STRING); | |
| console.log(stringNew); | |
| var GLOBAL_NUMBER = 20; | |
| var numberNew = new Number(20); | |
| console.log(GLOBAL_NUMBER); | |
| console.log(numberNew); | |
| var GLOBAL_BOOL = true; | |
| var boolNew = new Boolean(true); | |
| console.log(GLOBAL_BOOL); | |
| console.log(boolNew); | |
| var GLOBAL_ARR = ['edinson', 'carranza', 'saldaña']; | |
| var arrGlobal = new Array('edinson', 'carranza', 'saldaña'); | |
| console.log(GLOBAL_ARR); | |
| console.log(arrGlobal); | |
| var obj = {'name': 'edinson', 'surname': 'carranza'}; | |
| var objNew = new Object({'name': 'edinson', 'surname': 'carranza'}); | |
| console.log(obj) | |
| console.log(objNew); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment