alert(document.cookie);
GO!
Set and read a cookie named "example" with properties foo and bar. The alert should say "foo is 1".
set and read
Write a cookie and then remove it. The alert should say "undefined".
Write and remove