+ 1
Does anyone know how to get Mean Median and Mode in Javascript?
hey guys just need an advice on how to create a Mean Median Mode based on inputs. Thank You!
7 ответов
+ 8
It will do.
I think there might be better code for get mode.
https://code.sololearn.com/W0igg711k8d7/?ref=app
+ 3
https://code.sololearn.com/WDaxbKsDI4bH/?ref=app
+ 1
Thank You Very Much!
+ 1
Here you go:
https://code.sololearn.com/WJQ6Yi3jCAo1/?ref=app
I built it in rush, with little testing.
Do let me know if there is calculation errors.
If no mode in the values, the mode value should show "no value". But current code shows a value which can be ignored.
Edited: mode can show "no value" now if no duplicate value occurred.
+ 1
ok thanks bro :)
0
Thank You!
0
how about based on the User' input?