is it possible to open js using ajax and return a value from an array without loading the js file to the page?

is it possible to open js using ajax and return a value from an array without loading the js file to the page?

I have a js file on my server that contains an array. I want to open the file with jquery ajax, and get a value from that array without loading the script to the page. Is that possible ?