Can i compare the two array of object like percent[0]>percent[1]. Here percent is an array percent[2] | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Can i compare the two array of object like percent[0]>percent[1]. Here percent is an array percent[2]

5th Aug 2018, 6:45 PM
Praful Dhale
7 Answers
5th Aug 2018, 7:46 PM
Jonas Schröter
Jonas Schröter - avatar
+ 3
Why don't you try it out??
5th Aug 2018, 7:38 PM
Jonas Schröter
Jonas Schröter - avatar
+ 2
An array of objects?
5th Aug 2018, 7:38 PM
Jonas Schröter
Jonas Schröter - avatar
0
Depends on the type of the array. not every type can be compared using >
5th Aug 2018, 7:34 PM
Jonas Schröter
Jonas Schröter - avatar
0
It is 1D array
5th Aug 2018, 7:35 PM
Praful Dhale
0
Yes
5th Aug 2018, 7:38 PM
Praful Dhale
0
It is array of object
5th Aug 2018, 7:38 PM
Praful Dhale