Espruino/tests/test038.js
Gordon Williams f3d6e0bc83 First commit
2013-09-26 14:39:04 +01:00

10 lines
169 B
JavaScript

// array push and pop
var a = [];
var b = ["foo"];
var c = [];
c.push(42);
result = a.push("x")==1 && b.pop()=="foo" && b.length == 0 && c.push(2)==2 && c.length==2;