What is an example of a method in Javascript?
<p>As a beginner to development in javascript, I've looked around for a concise, succinct example 
of what an example of a <strong>method</strong> is in javascript, especially its difference with <strong>function</strong>. but everything I've found thus far looks quite convoluted. I'd love to see a super basic example I can copy and paste and play around with in my own examples.</p>
