There are two reasons for this:
- jQuery helps you convert data attribute values to corresponding types.
- Numbers that cannot be represented exactly in JavaScript because all numbers are 64-bit IEEE 794 floating point values.
".attr()" , , . , ( "_" - ), JQuery .