What is object method?
A method in object-oriented programming (OOP) is a procedure associated with a message and an object. An object consists of data and behavior; these comprise an interface, which specifies how the object may be utilized by any of its various consumers.
What is a built in method?
A function which is already defined in a program or programming framework with a set of statements, which together performs a task and it is called Build-in function. So users need not create this type of function and can use directly in their program or application.
Common HTML Events.
|onclick||The user clicks an HTML element|
|onmouseover||The user moves the mouse over an HTML element|
|onmouseout||The user moves the mouse away from an HTML element|
|onkeydown||The user pushes a keyboard key|
Is everything a object?
Every data type that we work with is a class and classes are objects. Even the Object class is an object. Strings, integers, floats, hashes, arrays, symbols, classes, modules, errors and more are all objects.
Not everything is an object, there are what we call primitive values, which are string, number, boolean, null, and undefined. That’s true, a string is a primitive value, but you can access all the methods inherited from String. prototype as if it were an object.