I'm looking at the following code:
var script = document.querySelector('script[src*="' + file + '"]');
What does the * component of the selector do?
I'm looking at the following code:
var script = document.querySelector('script[src*="' + file + '"]');
What does the * component of the selector do?
* at attribute selector matches file if file string is contained within the attribute