function foo() { if (counter <= 10) return; // it works! }