Answers for "how to pass a variable from one function to another function in javascript"

-2

how to pass a variable from one function to another function in javascript

function function1()
{
  var variable1=12;
  function2(variable1);
}

function function2(val)
{
  var variableOfFunction1 = val;
Posted by: Guest on August-19-2021

Code answers related to "how to pass a variable from one function to another function in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language