In this video, I show how to use the inbuilt JavaScript method setTimeout() in theory, and in practice.

I will walk you through how to use the method step by step, and then show you how I have applied it in my game of Pacman for how we get the ghosts to go back to their normal colours 10 seconds after Pacman has eaten a power pellet turning them scared and blue.

This is part of my inbuilt JavaScript method series. I hope you enjoy!

I would love to hear your thoughts on my video, so please do reach out to me on YouTube, Twitter (https://twitter.com/ania_kubow) or Instagram (https://instagram.com/aniakubow) 🙂

Oh and please do Subscribe and hit that bell button! It would mean a lot to me and motivate me to make more videos for you all!

#javascript
#javscript_game