Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

variable used in a function can be used in another function js

function medium(){
         var user1=new collector(one,two);
         var user2=new collector(one,two);
         login(user1,user2);

       }

      function login(user1,user2){
        var u1=user1.username;
        var u12=user1.password;
        var u2=user2.username;
        var u22=user2.password;
      }
 
PREVIOUS NEXT
Tagged: #variable #function #function #js
ADD COMMENT
Topic
Name
5+7 =