1setTimeout(function() {
2 get_details(user);
3}, 18000);
4
5
6it depends when you invoke the setTimeout:
7
8setTimeout invoked on dom ready - Yes, get_details() will run after 180 sec
9setTimout invoked on event (e.g. button click) - Button was clicked --> setTimeout has been invoked --> page was refreshed, the queue of the event loop was cleared and get_details will not be invoked.