点击运行
const names = ['Jiyik','Mohtashim','Bhargavi','Raja'] names.map((element,index)=> { console.log('inside arrow function') console.log('index is '+index+' element value is :'+element) })
运行结果 :
正在执行...