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
Top comments (2)
Const <=> const
method and function are different