Ask coding questions

← Back to all posts
How to create/read/write files in HTML/CSS/JS Repl?
Blessedchan (1)

Hey, I want to create/read/write files from HTML/CSS/JS Repl, and I googled it but only saw things like Node's FS package. But because I have no idea how to incorporate that to an HTML Repl, I was completely lost. Anyone mind helping?

Answered by Coder100 (18123) [earned 5 cycles]
View Answer
Coder100 (18123)

you cannot create files like that in a web environment as that poses a security risk, and remember all websites have a server behind them that controls the website media.