JavaScript Array Map | Array map() method in JavaScript

preview_player
Показать описание
JavaScript Array Map | Array map() method in JavaScript

Code:
const num = [1,2,3,4,5,6,7,8,9,10,55]

//Scenario 1
function mapCallabck(item,index,arr){
return num
}

//Scenario 2:
function mapCallabck(item,index,arr){
return item*2;
}

//Scenario 3
function mapCallabck(item,index,arr){
return item*index;
}

//Sceanrio 4
const Students =[
{
name:'A',
sno : 1,
marks : 70

},
{
name:'B',
sno : 2,
marks : 75
},
{
name:'C',
sno : 3,
marks : 80
},
]
}))

//Scenario 5

const AmazonProducts =[
{
name:"Mobiles",
price:"10000",
count:20
},
{
name:"Laptop",
price:"30000",
count:30
}
]

}))

//Scenario 6
const stringNum = ['1','2','3','4','a']

Chapters:
0:00 - Introduction to the video
0:21 - Explanation with scenarios of Js map method
1:23 - Scenario 1 for map method
2:21 - Scenario 2 for map method
3:31 - Scenario 3 for map method
4:31 - Scenario 4 for map method
7:41 - Scenario 5 for map method
10:45 - Scenario 6 for map method
12:04 - End Tags and subscription to the channel

My second Channel:

Follow Insta:

Next Steps:

---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists

---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------

#map
#javascript
#javascriptfunctions
Рекомендации по теме
visit shbcf.ru