mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 01:22:12 +02:00
12 lines
168 B
JavaScript
12 lines
168 B
JavaScript
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);
|