0

How would I get Math.max to return the var name, not the value?

Pretty self explanatory, here's the code (not done, just a draft): https://code.sololearn.com/WNXoBXZewyb0/?ref=app

11th Jun 2020, 10:33 AM
Will
3 Respostas
+ 2
yes... I used a datastructure i know from python. a kind of key/value.
11th Jun 2020, 11:24 AM
Oma Falk
Oma Falk - avatar
0
https://code.sololearn.com/W8JATI6cYGL4/#html I am not that js professional, but go into this direction. Surely others will find better solutions,
11th Jun 2020, 11:07 AM
Oma Falk
Oma Falk - avatar
0
1. Thanks Oma Falk =) 2. How did you do that? looks like the data pairing thing that I kinda skipped in the es6 tutorial but I'm not to sure
11th Jun 2020, 11:16 AM
Will