Jacada interview question

How to error handle in sync-await in JS