Here is the sample output of the above JavaScript create and delete cookie example code. This is the initial output:

To create cookie, click on the Create Cookie button. After clicking on Create Cookie button, enter the value (name) of the
cookie as shown in the following figure:

Now, click on OK button to successfully create your cookie. To delete cookie, just click on the Delete Cookie button.
After clicking on the Delete Cookie button, you will get the output as shown in the following figure: