How can I add only the highest four digits from the array of five items in Javascript ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can I add only the highest four digits from the array of five items in Javascript ?

Numbers = [7,4,9,2,0];

11th Jan 2019, 11:43 AM
Ugyen Chophel
4 Answers
+ 2
How ?
11th Jan 2019, 11:52 AM
Ugyen Chophel
0
Try deleting the lowest digit instead.
11th Jan 2019, 11:50 AM
James
James - avatar