It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

return function

return function

Postby johnnyq on Sun Jan 31, 2010 3:03 pm

Hi I'm pretty new to programming and am wondering is it possible to return two things in a single function as follows:

Code: Select all

function check() {

var x=10;
      {
      
             return true;
      return x;
      }



Thanks for your help
johnnyq
 
Posts: 4
Joined: Fri Jan 29, 2010 9:34 pm

Who is online

Users browsing this forum: No registered users and 4 guests