mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-15 07:32:52 +00:00
I'm not completely thrilled about Object::get() and Object::put() doing special-case stuff for arrays, and we should probably come up with a better abstraction for it. But at least it works for now, which is really nice. :^)
7 lines
86 B
JavaScript
7 lines
86 B
JavaScript
var a = [1, 2, 3];
|
|
|
|
a[1] = 5;
|
|
|
|
for (var i = 0; i < 3; ++i) {
|
|
console.log(a[i]);
|
|
}
|