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