♦ Object in JavaScript
♣ Example5: Object in JavaScript
Object is a Data Type that can hold many other data types such as attributes, i.e, a custom data type can be defined.In this example, Object is illustrated.
Example
Input:
Output: