how to wait for async operation in javascript

welcome to shbcf.ru