javascript typecasting
By liviu - Posted on May 24th, 2009
Tagged:
In case you want to make sure javascript wants to add two values instead of concaternating them when you use "+" you can make them act as an int for example with parseInt:
a+1 might concaternate
parseInt(a) + parseInt(1) will add
Bookmark/Search this post with:
- liviu's blog
- Login or register to post comments
Delicious
Digg
StumbleUpon
Propeller
Reddit
Magnoliacom
Newsvine
Furl
Facebook
Google
Yahoo
Technorati
Icerocket