Computer Science, asked by Alizask4158, 10 months ago

One object properties called inside another object in ussing call methos

Answers

Answered by Anonymous
0

Answer:

here's your Answer

Objects are usually created to represent entities of the real world, like users, orders and so on:

let user = {

name: "John",

age: 30

};

And, in the real world, a user can act: select something from the shopping cart, login, logout etc.

Actions are represented in JavaScript by functions in properties

Similar questions