delete a cookie in JavaScript

JavaScript
🤖 Code Explanation
This code deletes a cookie with the given name. It sets the cookie's expiration date to be in the past, which causes the browser to delete it.

More problems solved in JavaScript





















This code deletes a cookie with the given name. It sets the cookie's expiration date to be in the past, which causes the browser to delete it.
Download SpellBox today Download SpellBox for macOS, Windows and VS Code today. Solve any programming or engineering problem with A.I.