Unlike Java or Python, Javascript does not have a built-in sleep function. A simple way to create a delay in Javascript is to use the setTimeout method.