Day 13 of Learning JavaScript 💻 Today I practiced accessing and modifying object properties. Example: user.name = "New Name" This is useful when working with dynamic data. Feels good to understand how real apps update data. #javascript #frontenddeveloper
Learning JavaScript: Accessing & Modifying Object Properties
More Relevant Posts
-
In this lesson, I shared the basics of variables and data types in JavaScript. These are essential concepts that help store and manage data in any program. Practicing simple examples in VS Code makes it easier to understand how values work and how JavaScript handles different types of data. #JavaScript #WebDevelopment #FrontendDevelopment #CodingJourney #LearnJavaScript #Developers #VSCode #ProgrammingBasics
To view or add a comment, sign in
-
🚀 Mastering JavaScript Arrays now! 🚀 Arrays are a fundamental data structure in JavaScript, allowing you to store multiple values in a single variable. They are versatile and can hold different types of data, making them essential for developers to manage and manipulate data efficiently in their applications. To create an array in JavaScript, start by declaring a variable and assigning it to square brackets containing your values. Access elements using their index, starting from 0. Remember to use built-in array methods like push() and pop() to add or remove elements easily. ```javascript let fruits = ['apple', 'banana', 'orange']; console.log(fruits[0]); // Output: apple fruits.push('grape'); // Add 'grape' to the end fruits.pop(); // Remove the last element ``` Pro tip: Use array destructuring to unpack values from arrays into distinct variables, enabling cleaner and more concise code. Common mistake: Forgetting that array indices start at 0 can lead to errors in accessing elements, so always count from 0 when working with arrays. 🤔 What's your favorite method to manipulate arrays? Share your tips! 🤓 🌐 View my full portfolio and more dev resources at tharindunipun.lk #JavaScript #Programming #WebDevelopment #CodingTips #ArrayManipulation #DeveloperCommunity #CodeNewbie #TechTalk
To view or add a comment, sign in
-
-
Day 28 Of #30DaysOfCode Challenge Today I started my journey into JavaScript! 💻 I explored some fundamental concepts that form the base of web development: 🔹 JavaScript Values: Primitive types like Number, Boolean, String, and Undefined 🔹 Operators: Used "typeof()" to check data types 🔹 Type Conversion: Converted strings into numbers using "parseInt()" 🔹 Conditional Statements: Learned how "if", "else if", and "else" control program flow 🔹 Comparison Operators: Understood the difference between "==" and "===" 🔹 Math Functions: "Math.random()" and "Math.ceil()" for working with numbers 🔹 HTML & DOM Basics: Worked with "<input>" elements Used ".value" to get user input 💡 Key takeaway: JavaScript is all about understanding how data behaves and how we can control it. Excited to keep learning and building step by step 🚀 #JavaScript #Day1 #WebDevelopment #CodingJourney #LearnToCode #100DaysOfCode #NxtWave #ccbp
To view or add a comment, sign in
-
Today I finally understood how JavaScript actually stores data in memory — and it changed the way I look at code. Earlier, I used to just write variables and functions without thinking much about what’s happening behind the scenes. But now it makes a lot more sense: Primitive values (like numbers, strings, booleans) are stored directly in memory Reference types (like arrays and objects) are stored differently — the variable holds a reference, not the actual value That’s why things like this behave unexpectedly sometimes: Copying objects doesn’t create a real copy Changing one reference can affect another Understanding this cleared up a lot of confusion I had while debugging. Still learning, but this felt like a small breakthrough Hitesh Choudhary Piyush Garg Chai Code #JavaScript #WebDevelopment #100DaysOfCode #LearningInPublic
To view or add a comment, sign in
-
-
🚀 Day 968 of #1000DaysOfCode ✨ Types of Loops in JavaScript (Explained Simply) Loops are one of the most fundamental concepts in JavaScript — but choosing the right one can make a big difference in your code. In today’s post, I’ve explained the different types of loops in JavaScript in a simple and practical way, so you can understand when to use each one. From `for` and `while` to `for...of` and `for...in`, each loop has its own purpose depending on how you’re working with data. Using the right loop not only makes your code cleaner but also improves readability and performance in many cases. This is one of those basics that every developer uses daily — but mastering it helps you write much better code. If you’re working with arrays, objects, or complex data structures, this is something you should be confident about. 👇 Which loop do you use the most in your day-to-day coding? #Day968 #learningoftheday #1000daysofcodingchallenge #FrontendDevelopment #WebDevelopment #JavaScript #React #CodingCommunity #JSBasics
To view or add a comment, sign in
-
🚀 JavaScript Day 2 – Deep Understanding of Core Concepts Today I focused on understanding each concept in detail with definitions and clarity 💻🔥 📌 Topics & Definitions: 🌐 Origin of JavaScript JavaScript was created in 1995 by Brendan Eich to make web pages interactive. 📝 Variables Declaration Variables are used to store data values using let, var, or const. 🔒 Constants Declaration Constants (const) store values that cannot be reassigned after declaration. ⚠️ Old Method: var var is the old way of declaring variables, function-scoped and can cause issues. ❌ Problems with var No block scope Can be redeclared Causes bugs due to hoisting 🔑 let vs const let → value can change const → value cannot change 📊 Data Types in JavaScript 👉 Primitive Data Types (Immutable) Number 🔢 → Stores numeric values String 🧵 → Stores text Boolean ✅❌ → true/false values Undefined ❓ → Variable declared but not assigned Null ⚪ → Intentional empty value BigInt 💡 → Large integers beyond Number limit Symbol 🔐 → Unique identifier 👉 Non-Primitive Data Types (Mutable) Array 📦 → Collection of values Object 🧱 → Key-value pairs Function ⚙️ → Reusable block of code 🧠 Important Concepts: 🔍 Null vs Undefined undefined → value not assigned null → intentionally empty ⚙️ typeof Operator Used to check data type of a value 🤯 typeof null Bug typeof null returns "object" (this is a known JavaScript bug) 🔒 Immutability (Primitive) Primitive values cannot be changed directly 🔄 Mutability (Non-Primitive) Objects & arrays can be modified 📥 Pass by Value Primitive values are copied when assigned 🔗 Pass by Reference Objects are assigned by reference (memory address) 💡 Why Pass by Reference? To save memory and improve performance 📅 Day 2 Complete ✔️ Building strong fundamentals step by step 💪 #JavaScript #LearningJourney #Day2 #Coding #WebDevelopment #Programming #Developer
To view or add a comment, sign in
-
-
Day 66 | JavaScript Loops & Array Iteration Today I practiced JavaScript loops and working with arrays of objects🧑🏻💻 - What I Worked On: •Iterated through array of objects using for loop •Printed all elements and accessed object properties like loc •Used loop with step increment (i += 2) to print alternate values •Practiced reverse counting using for and while loops •Used forEach() for cleaner array iteration 💡 Key Learning: •Arrays of objects are very common in real-world applications •Loop conditions must be handled carefully (i < length vs <= length) •forEach() is simple and readable for iteration •Multiple ways to loop → choose based on requirement Takeaway: Mastering loops is key to handling data efficiently in JavaScript Consistency is improving logic step by step #Day66 #JavaScript #Loops #Arraylteration #ProblemSolving #CodingJourney #10000Coders #WebDevelopment #SravanKumarSir
To view or add a comment, sign in
-
🚀 Master JavaScript Faster with This Cheat Sheet! Whether you're a beginner or brushing up your skills, this JavaScript Cheat Sheet has everything you need in one place: ✔️ Variables & Data Types ✔️ Functions & Arrow Functions ✔️ Arrays & Objects ✔️ DOM Manipulation ✔️ ES6+ Features ✔️ Events & Async JavaScript #JavaScript #WebDevelopment #FrontendDevelopment #Coding #Programming #LearnToCode #Developer #100DaysOfCode #JS #SoftwareDevelopment #CodingLife #CodeNewbie #WebDev #TechSkills #ProgrammingLife #Developers #LearnJavaScript #CodingCommunity #FullStackDeveloper #DevLife
To view or add a comment, sign in
-
-
Day 1/100 – Cracking Full Stack Developer Interview 🚀 Today I started with JavaScript Basics. - Explain About JavaScript Introduction - Difference between var, let and const - JavaScript data types (String, Number, Boolean, Object, etc.) 💻 Practiced: - Declaring variables indifferent ways - Tried simple operations using operators 🧠 Key Takeaway: let and const are safer than var because they follow block scope. #100daysofcode #javascript #webdevelopment #frontenddeveloper
To view or add a comment, sign in
-
#Day5 of JavaScript Series: 🚀 DataTypes in JS: 🔹 What are Data Types? They define the type of data a variable can hold. 🔹 JavaScript has 2 main categories: 👉 1. Primitive Data Types Number → 10, 3.14 String → "Hello", 'JS' Boolean → true / false Undefined → variable declared but not assigned Null → intentional empty value BigInt → large integers Symbol → unique identifiers 👉 2. Non-Primitive (Reference) Data Types Object → {name: "John"} Array → [1, 2, 3] Function → function() {} 🔹 Example: let name = "Deepika"; // String let age = 21; // Number let isStudent = true; // Boolean let skills = ["JS", "React"]; // Array 🔹 Why it matters? ✅ Helps avoid unexpected bugs ✅ Improves code readability ✅ Essential for mastering JavaScript #JavaScript #WebDevelopment #Coding #Frontend #Developer #Day5 #Programming Raviteja T Abdul Rahman 10000 Coders
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development