
JavaScript Functions & CRUD Operations on Objects 🚀
As a beginner in JavaScript, I learned that functions help us organize and reuse code, while objects help us store related data. Let's understand both with simple examples. Types of Functions in JavaScript Normal Function A normal function is created using the function keyword. We can pass values to a function. A function can return a value. Arrow functions provide a shorter way to write functions. CRUD Operations on Objects 📦 C → Create R → Read U → Update D → Delete Let's use a simple student object. Create an object with some information. Access the information from the object. console.log(student.name); console.log(student.age); Change an existing value. console.log(student.age); We can also add a new property: Remove a property using the delete keyword. Now the age property is removed.

