From the February month, Gmail users won’t be able to send or receive any file with the .JS file extension as Gmail will simply bare or delete them.
Google has always sought to provide its services with the best security standards and the best protection for its users. Gmail, because of its popularity and the millions of users it has, is constantly being targeted for security enhancements.
For a long time, Gmail blocks sending and receiving a set of file types that are considered dangerous. This is why files with .EXE, .BAT, or .MSI and many more extensions are simply barred and deleted, ensuring that the user does not receive them and remain safe.
Sending .JS Files Via Gmail
Anyone attempting to send a .JS file will receive an error message, which will give you access to a more detailed explanation of the causes of the attachment blocking, as it does. Google can detect such files directly or when they are inside compressed files (.ZIP, .TGZ, .GZ or .BZ2)
Receiving .JS Files In Gmail
Since security must be bidirectional, Google will also block the reception of such files by rejecting the messages that contain them and sending notifications to the sender notifying them of the problem.
For users who need to share .JS files, Google recommends using Google Drive, Google Cloud Storage, or any other cloud service.
It may seem like a far-reaching move, but this new lock will ensure even more security for Gmail users by preventing them from receiving files that could be potentially dangerous.