how to check a cookie on client side code example Example: check cookies client side const cookies = document.cookie