Ad
  • Default User Avatar

    Yes, absolutely.
    There are 3 another ways to create an array:

    1. var path = []; // literal syntax
      2.1) var path = new Array(); // constructor syntax
      2.2) var path = Array(); // like 2.1), just throw out keyword 'new' and it still works
  • Default User Avatar

    Oh, my fault, I just forgot to delete this variable before submit. As you can see, the only line with $path is commented :)
    I even can't remember, why I have tried to use it :D