cancel
Showing results for 
Search instead for 
Did you mean: 

adding js file in magento2

adding js file in magento2

I'm curious about a couple of things. Firstly, I'm wondering where I should place a JavaScript file so that it's accessible across all pages of my website. Secondly, let's dive into a scenario: Suppose there's a module named "module-layered-navigation," and I'd like to customize it within my apktod's theme by adding a JavaScript file dedicated to this module. How can I go about this, ensuring that the JavaScript file is limited to use within this specific module?