1.

var materials = [
'Table',
'Chair',
'Boxes',
'Press'
];

console.log(materials.map (material => material.length));
5.what will be the output of below code?

A. [ 'J', 'v' ]
B. [ 'J' ,'v','Script']
C. [ 'J', 'v', 'Script String' ]
D. [ 'JavaScript String' ]
Answer» B. [ 'J' ,'v','Script']


Discussion

No Comment Found