What is the proper way of using JavaScript in numbers
Tien, java is not the same as Javascript, in fact the one doesn't have anything to do with the other except for the first 4 letters...
@deundrabell
i don't really understand what you mean with your question
If you mean something like "1234" + 23 give you 123423 instead of 1257, then try parseInt.
var str = "1234"; var num = 23; alert(parseInt(str) + num);
If you mean something else, then post an example of what you're wanting to do.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Tien, java is not the same as Javascript, in fact the one doesn't have anything to do with the other except for the first 4 letters...
@deundrabell
i don't really understand what you mean with your question
If you mean something like "1234" + 23 give you 123423 instead of 1257, then try parseInt.
If you mean something else, then post an example of what you're wanting to do.