Is this right way to convert data attributes values to number in javascipt? Need to get valid numeric value or 0

14 posts were split to a new topic: The advantage of using Number() instead of parseInt or parseFloat