1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dear Visitor, we are presently having a membership drive and as a result EVERY new member that registers an account and makes THREE meaningful posts will have a mighty $10,000$ forum credits added to their wallets ... GET YOURS NOW!
    Dismiss Notice
  3. IMSpot.Org is under new management and we look forward to bringing you a range of exciting enhancements in coming days.
    Dismiss Notice
  4. Dear Visitors, why not register an account now and say hello ... we really would love to hear from you?
    Dismiss Notice
  5. Welcome to IMSpot.Org an internet marketing forum and very friendly place for discussion, learning and help in your online endeavours ... please consider joining our internet marketing community and sharing your knowledge with our members.
    Dismiss Notice

Question about javascript

Discussion in 'JavaScript' started by TheUninvited, Dec 30, 2013.

  1. TheUninvited

    TheUninvited Most Celebrated Member

    Oct 30, 2013
    Likes Received:
    what is the is the purpose for using parseInt and parseFloat?

    and what does actually the return function does?

    for example on this code here:
    var foo = doSomething(5 , 6);
    var bar = doSomething(1, 5);
    function doSomething(paramOne, paramTwo) {
    	paramOne = paramOne + 5;
    	paramOne = paramOne + 1;
    	paramOne = paramOne -1;
    	return paramOne + paramTwo;
Live Thread addon by sonnb

Share This Page