Tech
Today, I spent time revising two essential core concepts in JavaScript:
JavaScript Objects and Arrow Functions. Here is a quick breakdown of what I covered:
1. JavaScript Objects (Key-Value Pairs & Methods)
Objects allow us to group related data and functionality together.
Example 1: Mobile Object:
const mobile = {
brand: "Vivo",
price: 15000,
network: "5G",
browse: function () {
console.log("Browsing...");
}
}
Example 2: Bike Objects (TVS & Bajaj):
const TVS = {
model: "XL-100",
price: 99000,
cc...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to