Report question

Question: How to limit the execution time of a function in javascript?