Use Javascript to open a directory?
isaiah08

How would I use JS to open testing.txt and read what is in it?
(I am using Javascript by having a .html file and using a <script> tag.)

You are viewing a single comment. View All
Answered by Coder100 [earned 5 cycles]
View Answer
mamamia5x

You would use the Javascript FS module, but it can't be used in an HTML, CSS, JS repl, it'll have to be used on a NODEJS repl

Coder100

@mamamia5x no they don't, they can just make an HTTP request

RohilPatel

Ur right j*r** (not bad word, his name) @Coder100