run a code after delay js

JavaScript
setTimeout(function(){}, milliseconds);
Source

Also in JavaScript: