Forum Moderators: open
if testFoo()
{ do stuff }
if testFoo()
{ do stuff }
if (testFoo())
{ do stuff }
Still closer inspection reveals that I'd inadvertently given the test function twice
function testFoo() {
// do some tests
}
function testFoo() {
// do some tests
}
if (testFoo) // missing the () after testFoo
missing the () after testFoo
fn (\w+)
>> CHANGE TO >>
\1()
var gotit = ;
var gotit = false;
rest-of-function here