How to add custom Javascript in head in Magento 2
To add a custom Javascript file in head in Magento 2, use the following example:

Source (
More Magento 2 tips from the Cookbook

To add a custom Javascript file in head in Magento 2, use the following example:
Source (
More Magento 2 tips from the Cookbook