I have a function, functionOne, defined normally, outside of other functions or if statements. Now I have another function, functionTwo, and I call functionOne inside of functionTwo. I've tried searching around but I could only find things that told me to define functionOne inside of functionTwo. My issue is that it's already defined, outside of any functions, as I said before.
Here's my code:
function functionOne (connection) {
//code here for functionOne
}
function functionTwo (functionOne, connection) {
//some code here for functionTwo
functionOne(connection)
}
The error is that the connection var isn't being passed over. Any fixes appreciated! Thanks :)
function <functionName> () {}functionOneas a parameter when invokingfunctionTwo.... hehe got it fixed now thanks :P