Hello all,
My JS skills are not good enough to do the following task so I am calling on the community! I could learn to do this, but I need to get this task done quickly, so I appreciate any help.
I would like to round a number passed by a user to the nearest 10. For example, if 7 is passed I should return 10, if 33 is passed I should return 30.
I am using JQuery, I had a look for this sort of function but couldn't find one, it's too specific I guess. Hopefully, the Math library can be used?
Thanks all