DEV Community

ViGnEsH
ViGnEsH

Posted on

JavaScript Objects Made Easy for Beginners

2026 - April - 06

What object?

  1. Object is collection of information store in one place.
  2. Object type of represents one of javascript datatypes
  3. Object can be created using the object()
  4. Object have state and behaviour State is a like name, color, age (key , value) Behaviour is a like console.log(person.name)
  5. If you understand object you understand javascript

CRUD

Create (add data)

  • we are create const variable
  • key : value
  • used comma each line but

  • last line no used comma.


Read (get data)

  • Print out output

  • Read is used console.log(mobile.price)
    mobile -> Object name
    price -> property
    dot -> dot operator


Update (change data)

  • Price data value change
  • why print 29999 value

Now print 1999 because value change before we are print that is reason.


Delete

Delete mobile model give true in output
now print model what are come output see

Output comes in undefined value.


We are learn about CRUD

  1. Create
  2. Read
  3. Updata
  4. Detele

Top comments (0)