<p>Is there a way to print all methods of an object in JavaScript?</p>

From
here
:
Example 1: This example writes out all the properties of the "navigator" object, plus their values:
```
```
for (var myprop in navigator){
 document.write(myprop+": "+navigator[myprop]+"<br>")
}
```
```
Just replace 'navigator' with whatever object you are interested in and you should be good to go.
As mentioned by Anthony in the comments section - This returns all attributes not just methods as the question asked for.
Oops!  That'll teach me to try and answer a question in a language I don't know.  Still, I think the code is useful - just not what was required.