Hi, sorry for the noobish question, i'm new in JS and in this forum (and sorry for my english too, i'm italian)

According to the Javascript The Complete Guide 8th Edition,

"When we combine functions with objects, we get methods"

Always according to the book, an object is a collection of name/value pairs, or a string to value map.
var book = { // Objects are enclosed in curly braces.
topic: "JavaScript", // The property "topic" has value "JavaScript".
fat: true // The property "fat" has value true.

So, for what reason methods can be apllied to the arrays too ?
For exemple
myarray.reverse() is one of default method included in the JS API

I'm little confused about methods so... They can be applied only to the objects AND arrays? Or they can be applied to ANY kind of variable (for exemple, numeric, string, etc..) declared in JS?