Hi probably a new b question but whatever im new to javascript any way...
I have a function.....
function myFunction(){
var myVar = 'true';
}
how do i make it so if myVar == 'true' then to call myOtherFunction()
so like
myFunction(){
var myVar = 'true';
if(myVar == 'true'){
run myOtherFunction('pass1','pass2');
}
}
thank you
I have a function.....
function myFunction(){
var myVar = 'true';
}
how do i make it so if myVar == 'true' then to call myOtherFunction()
so like
myFunction(){
var myVar = 'true';
if(myVar == 'true'){
run myOtherFunction('pass1','pass2');
}
}
thank you