JavaScript Methods

JavaScript methods are actions that can be performed on objects. Methods are functions stored as object properties. E.g. alert('XSS').

<aside> 💡 document.cookie will return all cookies in one string much like: cookie1=value; cookie2=value; cookie3=value;

</aside>