Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
•
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-29 11h : 7 posts(29.09.2026 um 11:00 Uhr)
•
IT Security NachrichtenSeptember 2026 Cyber Attacks Timeline(29.09.2026 um 11:01 Uhr)
•••
IT Security NachrichtenCloudflare’s EmDash 1.0 makes sandboxed plugins ask for access first(29.09.2026 um 11:03 Uhr)
•
IT Security NachrichtenEngineering velocity is a competitive advantage in modern cybersecurity(29.09.2026 um 11:00 Uhr)
•
Sicherheitslücken (CVE)Kiteworks patches critical flaw, brings customer systems online(29.09.2026 um 11:04 Uhr)
•
IT Security NachrichtenGroßrazzia gegen Mogel-Handy-Ring: 300 Millionen Euro Schaden(29.09.2026 um 11:14 Uhr)
•
Malware / Trojaner / VirenMalware-Schutz auf QNAP-NAS richtig steuern(29.09.2026 um 11:00 Uhr)
••
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-29 11h : 7 posts(29.09.2026 um 11:00 Uhr)
•
IT Security NachrichtenSeptember 2026 Cyber Attacks Timeline(29.09.2026 um 11:01 Uhr)
•••
IT Security NachrichtenCloudflare’s EmDash 1.0 makes sandboxed plugins ask for access first(29.09.2026 um 11:03 Uhr)
•
IT Security NachrichtenEngineering velocity is a competitive advantage in modern cybersecurity(29.09.2026 um 11:00 Uhr)
•
Sicherheitslücken (CVE)Kiteworks patches critical flaw, brings customer systems online(29.09.2026 um 11:04 Uhr)
•
IT Security NachrichtenGroßrazzia gegen Mogel-Handy-Ring: 300 Millionen Euro Schaden(29.09.2026 um 11:14 Uhr)
•
Malware / Trojaner / VirenMalware-Schutz auf QNAP-NAS richtig steuern(29.09.2026 um 11:00 Uhr)
•
Intelligence View
⚡ tsecurity.de Intelligence

Objects in JS

1) What is an Object? An object stores data in key : value pairs. Syntax let mobile = { brand: "Vivo", model: "V70", price: 25000 }; Here, brand → key "Vivo" → value Accessing Object Val…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




1) What is an Object?



An object stores data in key : value pairs.






Syntax






let mobile = {
brand: "Vivo",
model: "V70",
price: 25000
};






Here,





  • brand → key


  • "Vivo" → value






Accessing Object Values






console.log(mobile.brand);
console.log(mobile.model);









Output






Vivo
V70









Real-World Example






let student = {
name: "Kavitha",
age: 20,
department: "EEE"
};

console.log(student.name);






Output:




Kavitha









2) Creating Object Inside an Object



This is called a nested object.



It means one object is stored inside another object.






Example: Mobile Object






let mobile = {
name: "Vivo",
model: "V70",

camera: {
rear: "32MP",
front: "64MP"
}
};






Here camera itself is another object.






Access Nested Object






console.log(mobile.camera.rear);
console.log(mobile.camera.front);









Output






32MP
64MP









Real-World Understanding



Think like this:



A student has an address



Address itself has:




  • city

  • state

  • pincode



So:




let student = {
name: "Kavitha",

address: {
city: "Tirunelveli",
state: "Tamil Nadu",
pincode: 627001
}
};






Access:




console.log(student.address.city);






Output:




Tirunelveli









3) Creating Function Inside an Object




  • When a function is created inside an object, it is called a method.

  • Methods represent actions.






Example






let mobile = {
name: "Vivo",

call: function() {
console.log("Calling...");
}
};









Calling the Function






mobile.call();






Output:




Calling...












Short Modern Syntax



This is the cleaner way:




let mobile = {
name: "Vivo",

call() {
console.log("Calling...");
}
};







  • This is commonly used.






4) Object + Nested Object + Function Together




  • This is the complete structure




let mobile = {
name: "Vivo",
model: "V70",

camera: {
rear: "32MP",
front: "64MP"
},

display: {
size: "6.8 inch",
type: "AMOLED"
},

calling() {
console.log("Calling Amma...");
},

browsing() {
console.log("Browsing...");
}
};









Access Everything






console.log(mobile.name);
console.log(mobile.camera.front);
console.log(mobile.display.size);

mobile.calling();
mobile.browsing();









Output






Vivo
64MP
6.8 inch
Calling Amma...
Browsing...









Why Do We Use This?



This is heavily used in:




  • JavaScript projects

  • React

  • APIs

  • JSON data

  • backend responses

  • real-world applications



Example:




user.profile.name
product.details.price
robot.sensor.temperature









Simple Memory Trick



Object = thing



Nested object = thing inside thing



Function inside object = action of that thing



Example:




  • Car → object

  • Engine → object inside object

  • Start → function inside object

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Objects in JS

Thematisch verwandte Begriffe: Objects · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-102240 | A vulnerability was found in Netcore NAP930 0.1.241010.141410. This aff…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag