Can Javascript Access Local Files?
JavaScript is a client-side scripting language, which means it runs on the user’s browser and has limited access to the user’s computer. JavaScript is sandboxed, which means it cannot directly access local files on the user’s computer for security reasons. However, it can be done.