DEV Community

AyoobRukabi
AyoobRukabi

Posted on

I need Help please with this sample of code i'm new with JS

const mapSomething = (arr) => {
arr.map(n => {
n + 2
})
}

// Returns [3, 4, 5]
console.log(mapSomething([1, 2, 3]));

Top comments (1)

Collapse
 
dev_emmy profile image
nshimiye_emmy

what kind help do you want with this code ?????