vHive interview question

How to implement singleton sync function in js