Design a library in javascript to provide communication between different tabs(or windows) of the same browser.
Points: 3
- Support only modern browsers.
- You can't assume that you will have a reference to the
window
object that you want to communicate with. - Hint: you can use localStorage for it.
- We only need to pass basic string messages.