<script>
function foo() {function bar() { } console.log(1); } foo(); </script>