diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-20 20:29:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-20 21:56:40 +0100 |
commit | a82f64d3d6fbf333e796e56952481190b9b1eb72 (patch) | |
tree | 471ad4641fdd59afddb0efc3f61a940cea72d27e /Base/home | |
parent | 0891f860f7127185b63d6e7ff67430b03e8ed287 (diff) | |
download | serenity-a82f64d3d6fbf333e796e56952481190b9b1eb72.zip |
LibJS: Parse ArrayExpression and start implementing Array objects
Note that property lookup is not functional yet.
Diffstat (limited to 'Base/home')
-rw-r--r-- | Base/home/anon/js/array.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Base/home/anon/js/array.js b/Base/home/anon/js/array.js new file mode 100644 index 0000000000..41e3b559a3 --- /dev/null +++ b/Base/home/anon/js/array.js @@ -0,0 +1,8 @@ +var a = [1, 2, 3]; +console.log(a); + +/* +for (var i = 0; i < 3; ++i) { + console.log(a[i]); +} +*/ |