wait 0.5 after function javascript code example Example: wait 0.5 after function javascript statement1(); setTimeout(function() { statement2(); }, 500);