A
Aaron
I know now (thanks to this board) that there are numerous ways to force
a type conversion from a string to a number (such as +, Number(), adding
1, parseInt(), etc).
I'm curious, though...is there any way to force a type conversion the
other way, that is, from a number to a string? Previously, I've just
been assigning numbers to the value property of whatever element I want
to change, which seems to automatically force the appropriate type
conversion (number to string). This seems sloppy though - is there a
way to overtly force this type conversion without having to resort to this?
Thanks,
Aaron
a type conversion from a string to a number (such as +, Number(), adding
1, parseInt(), etc).
I'm curious, though...is there any way to force a type conversion the
other way, that is, from a number to a string? Previously, I've just
been assigning numbers to the value property of whatever element I want
to change, which seems to automatically force the appropriate type
conversion (number to string). This seems sloppy though - is there a
way to overtly force this type conversion without having to resort to this?
Thanks,
Aaron