Score:0

Why am i unable to create js files?

eg flag

So I usually can create whatever file I need by naming it with its tag at the end but for some reason every time i try to create a file it always comes out as a plain text file. For example script.js is read as a plain file. Any help is appreciated.

cn flag
eh. A javascript file IS a file containing text. The context of it being a file containing javascript is up to the software used with it (like an editor or webserver or browser).
FedKad avatar
cn flag
It is the contents of the file that matters in most cases. Try the `file` command with your file: Change to the directory containing your js file and run: `file script.js`
Justice Nelson avatar
eg flag
Thank you I see in my text editor that it still reads the files as they should be
Stephen Michael Kellat avatar
de flag
What text editor are you using?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.