Array.js 299 B

1234567891011121314
  1. try {
  2. assert(Array.length === 1);
  3. assert(Array.prototype.length === 0);
  4. assert(typeof Array() === "object");
  5. assert(typeof new Array() === "object");
  6. x = new Array(5);
  7. assert(x.length === 5);
  8. console.log("PASS");
  9. } catch (e) {
  10. console.log("FAIL: " + e.message);
  11. }