Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Conditional Statement Forum Thread

deundrabelldeundrabell dallasMember Posts: 4

What is the proper way of using JavaScript in numbers


  • IcepickleIcepickle GermanyMember Posts: 59 ✭✭

    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...


    i don't really understand what you mean with your question

  • pseudocoderpseudocoder Member Posts: 701 ✭✭✭

    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.

Sign In or Register to comment.