A simple example for map method in javascript
Example-
Const numbers= [15,2,25,23];
Const newArr= numbers.map(myFun);
function myFun(num){
return num* 100
}
A simple example for map method in javascript
Example-
Const numbers= [15,2,25,23];
Const newArr= numbers.map(myFun);
function myFun(num){
return num* 100
}
For further actions, you may consider blocking this person and/or reporting abuse
Davide Santangelo -
Ayush Kumar Vishwakarma -
Gbubemi Attah -
Anthony Max -
Top comments (2)
method and function are different
Const <=> const