Created
February 3, 2012 09:55
-
-
Save kozo002/1729433 to your computer and use it in GitHub Desktop.
JavaScript勉強会 2012/2/3
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
| <script type="text/javascript"> | |
| var fruits = ['apple', 'banana']; | |
| var index = 1; | |
| console.log(fruits[index]); | |
| var fruits2 = [['apple', 5], 'banana']; | |
| console.log(fruits2[0][0]); | |
| </script> |
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
| <script type="text/javascript"> | |
| var num = {one: 1, two: ['hoge', 'huga']}; | |
| console.log(num.two[0]); | |
| [ | |
| 'hoge', | |
| 'huga' | |
| ]; | |
| </script> |
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
| <script type="text/javascript"> | |
| function hoge() { | |
| var hensu = 2; | |
| return hensu; | |
| } | |
| var uke = hoge(); | |
| console.log(uke); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment