I was serving things on chrome and something pop up that say if I don't update something my phone will shut down but I got scared and closed it ps it was on a galaxy note 4
It was probably scareware filth and lies. The most important thing is not to be tricked into tapping 'OK' or anything similar. You did the best thing by dismissing it.
If it continues to happen, lets us know.