i dont know what happen with my code..i have a Node.js that queries a MySQL db within the route and displays the result to the user. My problem is how do I run the queries and block until queries are done before redirecting the user to the page they requested? if i add alert before call,function run normally and quick response..but if alert disable the function cant return any value,the function like freeze..i dont know what happen with my code..i have a