How to use JS to download the file to the client device?
A a string with arbitrary text. Want to download the line by means of JS on the client computer with a specific name (such as "time321.txt"). Googled 10 minutes... So anything suitable and is not found.
I will be grateful if prompt where to look or share a solution.