How can I re-define variable in external js file 'js/sample.js'?
The main idea was not touch core file and be possible to pass a new value (to var COUNT_DEFAULT) on js load from my new module.
core js example:
(function(_, $) {
var COUNT_DEFAULT = 2;
...
Not sure if I understood you well, but you can do it like that.