Challenge Manipulate Arrays With unshift has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
var ourArray = ["Stimpson", "J", ["cat"]];
ourArray.shift(); // ourArray now equals ["J", ["cat"]]
ourArray.unshift("happy"); // ourArray now equals ["happy", "J", ["cat"]]
var myArray = ["John", 23, ["dog", 3]];
myArray.shift();
// Only change code below this line.
myArray.unshift(["paul",35]);
// Only change code above this line.
(function(y, z){return 'myArray = ' + JSON.stringify(y);})(myArray);
Pls make use of the help room next time. In your code you changed the restricted code. You were asked not to change the code above myArray.shift() but you replaced var myArray = ["John", 23], ["dog", 3]]; with var myArray = ["John", 23, ["dog", 3]];. I suggest you reset the code and pass in the appropriate code where you are supposed to place it. You almost got it right :+1: Don't forget that, "paul" is not "Paul". Make amendments, close the issue and use the help room for further issues.
Thank you.
@c-restha You have change the initial value of myArray, this is one reason the tests are not passing.
Click the Reset button to amend this.
As @marhyorh said, github issues are not for code help, we have dedicated chatrooms for that on gitter. Click the Help button to be taken there.
Please re-read the instructions and remeber that javaScript is case sensitive, and so are our tests.
Closing because it is for code help.
If I have misunderstood your issue, please feel free to open this issue again and provide more information.
@nazmulhooque if you want to help people. please use forum or chat room. but please don't give solution code to people. thanks
Most helpful comment
@c-restha You have change the initial value of
myArray, this is one reason the tests are not passing.Click the
Resetbutton to amend this.As @marhyorh said, github issues are not for code help, we have dedicated chatrooms for that on gitter. Click the
Helpbutton to be taken there.Please re-read the instructions and remeber that javaScript is case sensitive, and so are our tests.
Closing because it is for code help.
If I have misunderstood your issue, please feel free to open this issue again and provide more information.