This code is to place in your child theme functions.php which will add inline javascript to your site. If you are loading your own javascript file in your child theme with custom code you can place only the js portion of this snippet into your custom js file instead just make sure your script is running after all the WPBakery scripts on the page.
Snippets: Disable WPBakery Accordion URL Hash Change
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)