With the code below would I need to worry about other scripts (external or inline) overriding my function and variables? Or as this is within the jQuery( function( $ ) { function is myfunction and myVariable unique to that block of code?
<script>
    jQuery( function( $ ) {
        function myfunction() {
            console.log( 'test1' );
        }
        myfunction();
        var myVariable = 'test2';
    });
</script>
