diff options
Diffstat (limited to 'Base/home/anon/Source/js/array.js')
-rw-r--r-- | Base/home/anon/Source/js/array.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Base/home/anon/Source/js/array.js b/Base/home/anon/Source/js/array.js new file mode 100644 index 0000000000..b62f262396 --- /dev/null +++ b/Base/home/anon/Source/js/array.js @@ -0,0 +1,11 @@ +var a = [1, 2, 3]; + +a[1] = 5; + +var push_result = a.push(7); + +for (var i = 0; i < a.length; ++i) { + console.log(a[i]); +} + +console.log("push result: " + push_result); |