Why do most object-oriented programming languages mandate that I/O operations involving secondary storage such as disk are to be done in a try and catch block?
Working with localStorage is more efficient.
Working with try and catch blocks is faster.
Working with localStorage can result in errors.