How to pass data from one js to another js?

Hello! How to transfer the data in one JS to another? JS gets the data in JSON then from this data I need to send a couple of variables to another file ( module if you can seasat).
September 26th 19 at 07:31
2 answers
September 26th 19 at 07:33
localStorage['var1']='1111';
window.var1='1111';
September 26th 19 at 07:35
I agree with you.

It is possible through Ajax.

Find more questions by tags AJAXJavaScript