Canno continue this exercise, cannot pass the test

Tell us what’s happening:
It seems like everything is right, but one test doesn’t pass:
Your code should not use the map method.

I tried to refresh the page, and change from for to forEach loop, but the error persists.
Am I missing something?

Your code so far

// The global variable
var s = [23, 65, 98, 5];

// recreate .map function
Array.prototype.myMap = function(callback){
var newArray = [];
// Only change code below this line
for(let i = 0; i < this.length; i++) {
// Only change code above this line
return newArray;

var new_s = s.myMap(function(item){
return item * 2;


Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36.

Challenge: Implement map on a Prototype

Link to the challenge:

delete this comment, the tests are checking by looking at what’s written in the editor