I'm trying to solve a challenge involving finding the mean of an array but the output must be a number with a decimal point (4.0) Is it possible to do this in JavaScript? if the answer is no is there a programming language that can do it
you can use this
var num= 5;
num.toFixed(1);
it will return 5.0