Check out example codes for "google sheets mode text". It will help you in understanding the concepts better.

Code Example 1

=index(D4:L4; match(max(countif(D4:L4; D4:L4)); countif(D4:L4; D4:L4); 0))

Learn ReactJs, React Native from akashmittal.com