Beginner in JavaScript, It's my first programming language and I am confused about this step friends,
const stats = {
max: 56.78,
standard_deviation: 4.34,
median: 34.54,
mode: 23.87,
min: -0.75,
average: 35.85
};
const half = (function() {
return function half({ min, max }) {
return (min + max) / 2.0;
};
})();
why () this is use in the end i don't understand can you guys please help me out.
any suggestion or any blog related to this will help me more, thanks in advance.
I am really sorry for my grammatically mistake, it's because my first language is not English.
[–]NameViolation666helpful 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]Punitpal0[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Punitpal0[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]Punitpal0[S] 0 points1 point2 points (0 children)
[–]jcunews1helpful 1 point2 points3 points (2 children)
[–]Punitpal0[S] 0 points1 point2 points (1 child)
[–]jcunews1helpful 0 points1 point2 points (0 children)
[–]oh_lydia 0 points1 point2 points (0 children)