JS-Assignment-6
1. Find sum of elements of an array
2. Consider the following array
[ 1 ,2 , 3, 4 ]
Create new array by adding 10 to first element, 20 to second element , 30 to third element and so on using map() method.
[1,2,3,4 ]======>[ 11,22,33,44]
3. Consider the following array of students marks
[
{ name:"ravi", marks :{ maths: 89, physics : 70 , chemistry :88}},
{ name:"bhanu", marks :{ maths: 98, physics : 50 , chemistry :68}},
{ name:"kiran", marks :{ maths: 50, physics : 82 , chemistry :94}},
]
Find the names of students who got highest marks in maths , physics and chemistry.
https://codepen.io/Mahaboob-Basha-the-bashful/pen/PoMEXae
ReplyDelete