+ 4

Why JavaScript not made such to read/write files where as Java can do it flawlessly?

please describe the security reasons...

23rd Feb 2017, 10:49 AM
Ronit Kumar
Ronit Kumar - avatar
2 ответов
+ 2
JavaScript runs in the client browser on JavaScript engine.Natively it can't write files to client. It will create a security issue. Not like other languages JavaScript is plain text any one can modify the file while other server side languages/technologies like Java(JSP) compiled to bytecode and executed on server side.
24th Feb 2017, 3:04 AM
Eranga
Eranga - avatar
+ 5
thanks a lot @eranga
24th Feb 2017, 3:06 AM
Ronit Kumar
Ronit Kumar - avatar