Day 19 :-JavaScript + DSA (Java) After a short health break, I’m back again with full focus and energy to continue my daily learning journey. Consistency is the key, and today the journey continues stronger than before. 💪 📌 Today’s Learning JavaScript – DOM Manipulation 🔹 Creating Nodes ->createElement() – Create a new HTML element ->createTextNode() – Create a text node ->createAttribute() – Create an attribute node 🔹Accessing Attributes ->getAttribute() – Get the value of an attribute ->setAttribute() – Set or update an attribute ->removeAttribute() – Remove an attribute 🔹Adding Nodes to the DOM ->appendChild(node) – Adds a node as the last child ->append(node1, node2, …) – Adds multiple nodes ->insertBefore(newNode, referenceNode) – Insert before a specific node ->prepend() – Adds a node at the beginning ->replaceChild() – Replace an existing child node 🔹Other DOM Methods ->innerHTML – Directly set or update HTML content ->insertAdjacentHTML() / insertAdjacentElement() with positions: ->beforebegin ->afterbegin ->beforeend ->afterend ->removeChild(node) – Remove a child node ->element.remove() – Remove the element directly from the DOM 📌 DSA Learning ->Today I studied the Count Inversion Pair problem. Brute Force Approach: ->Time Complexity → O(n²) Optimized Approach (Using Merge Sort): vTime Complexity → O(n log n) #100DaysOfCode #JavaScript #WebDevelopment #DSA #LearningInPublic #Consistency
JavaScript DOM Manipulation & DSA with Count Inversion Pair Problem
More Relevant Posts
-
Learn Free: 1. HTML ➝ W3schools.com 2. CSS ➝ Freecodecamp.org 3. JavaScript ➝ Javascript.info 4. React ➝ React-tutorial.app 5. Git ➝ ohmygit.org 6. Python ➝ Learnpython.org 7. PHP ➝ w3schools.com 8. SQL ➝ sqlbolt.com
To view or add a comment, sign in
-
Most beginners use only console.log() for debugging in JavaScript. I used to do the same. But recently I realized the browser console has many other useful methods that can make debugging much easier and cleaner. Here are a few that every developer should know: • console.log() – The most basic one. It simply prints values in the console so you can check what is happening in your code. • console.table() – If you are working with arrays or nested objects, this is much better than console.log(). It shows your data in a clean table format. • console.time() / console.timeEnd() – These help measure how long a piece of code takes to execute. Very useful when you want to check performance. • console.warn() – Shows warnings in yellow. • console.error() – Shows errors in red, just like real error messages. • console.group() / console.groupEnd() – Helps organize multiple logs into groups, which makes debugging complex code much easier. • console.clear() – Clears the console when it becomes messy. Small tools like these can make a big difference while debugging. Sometimes learning these simple but powerful features can save a lot of development time. What console method do you use the most besides console.log()? #javascript Sheryians Coding School
To view or add a comment, sign in
-
Understanding the Difference: a++, ++a, and a += 1 in JavaScript When learning JavaScript, many beginners get confused between these three expressions. All of them increase the value of a variable, but they behave slightly differently depending on how they are used. 1️⃣ a++ (Post Increment) This operator uses the current value first and then increases it by 1. Example: let a = 5; let b = a++; console.log(a); // 6 console.log(b); // 5 Explanation: b receives the current value of a (5), and then a is incremented to 6. 2️⃣ ++a (Pre Increment) This operator increases the value first and then uses it. Example: let a = 5; let b = ++a; console.log(a); // 6 console.log(b); // 6 Explanation: a is incremented first, so b receives the updated value (6). 3️⃣ a += 1 (Addition Assignment Operator) This is another way to increase a variable’s value. Example: let a = 5; let b = (a += 1); console.log(a); // 6 console.log(b); // 6 Explanation: It simply means: a = a + 1 The value is updated immediately. Quick Summary: • a++ → Use the value first, then increase • ++a → Increase first, then use the value • a += 1 → Add 1 to the variable directly Understanding these small differences helps write cleaner code and avoid unexpected results in expressions. 💡Small concepts like these build a strong foundation in programming. #JavaScript #ProgrammingBasics #Coding #WebDevelopment #LearnToCode
To view or add a comment, sign in
-
👉 Deep Learning with Python 🔹Follow ABDUL REHMAN ♾️ for insightful and premium contents on web development & programming! ❤️ Like 🔁 Repost 💬 Comment your thoughts Credits: Nikhil Ketkar Start learning web development at top-notch platforms like w3schools.com, JavaScript Mastery #programming #javascript #webdevelopment #webdesign #html #css #codewithalamin #reactjs #webdeveloper #frontend
To view or add a comment, sign in
-
#Day_13 🚀 Day 13 – 30 Days Coding Challenge Today I continued learning Object-Oriented Programming (OOP) in JavaScript and explored Getters, Setters, and a practical form validation task using classes. 🔹 Topics I Learned • Understanding Getters and Setters in JavaScript • How getters and setters help control and update object data safely • Using private-style properties with "_" convention • Building a real-world form validation system using a class 🔹 Concepts Practiced • Created a Rectangle class using getters and setters to validate positive values for length and breadth • Ensured that invalid data (like negative numbers) cannot be assigned • Built a Register Form Validation project using HTML, CSS, and JavaScript classes • Implemented validation for Name, Email, and Password fields 🔹 Key Understanding Getters and setters help manage how object properties are accessed and updated, making code more secure, organized, and maintainable. 🔹 Mini Project I created a Register Form Validation system using a JavaScript class where: • Name must contain at least 3 characters • Email must match a valid email pattern • Password must contain at least 6 characters This helped me understand how OOP concepts can be used in real-world web development scenarios. Learning something new every day and improving my skills step by step on my journey to becoming a Full Stack Developer 💻🚀 #30DaysCodingChallenge #JavaScript #OOP #WebDevelopment #FrontendDevelopment #FullStackDeveloper #SoftwareDeveloper #CodingJourney #LearningInPublic #Bengaluru #Pune #Programming #BTM Fortune Cloud Technologies Private Limited
To view or add a comment, sign in
-
💡 The Most Important Skill in Programming Many people think the most important skill in programming is learning a language. PHP 🐘 JavaScript ⚡ Python 🐍 Java ☕ But after working in development, I realized something important… 👉 The real skill is 🧠 PROBLEM SOLVING. Because technologies keep changing. 🔹 New frameworks every year 😅 🔹 New tools every month 🤯 🔹 New “best practices” every week 😂 But if you know how to solve problems, you can learn any language. A good developer doesn’t just write code 👨💻 A good developer: ✅ Understands the problem ✅ Breaks it into smaller parts ✅ Finds the best possible solution And every developer knows the real struggle… 🐛 You spend 3 HOURS debugging a bug. Checking the code… Checking the database… Checking the API… Everything looks correct. And finally the problem turns out to be: 😅 Missing semicolon ; 😅 Wrong variable name 😅 One extra space Developer Life. 😂 That’s when you realize… ❌ Coding is not the hardest part. ✅ Finding the actual problem is the REAL SKILL. 👇 Curious to know your thoughts What do you think is the most important skill for a programmer? #php #phpdeveloper #programming #webdevelopment #codinglife #softwaredeveloper #backenddeveloper #developers #tech #debugging #webdev #coding #developerlife #programmer #techlife #codinghumor #problemSolving #itlife #100DaysOfCode #buildinpublic
To view or add a comment, sign in
-
-
Top Websites to Learn HTML, CSS, JavaScript, React & More Learning technology can feel overwhelming but the right resources make all the difference. This visual highlights some of the best websites to learn HTML, CSS, JavaScript, React, Git, APIs, MySQL, and more. Whether you’re building your first web page or leveling up your development skills, each link offers beginner-friendly tutorials, hands-on examples, and real projects to practice with. If you’re starting out, try focusing on HTML → CSS → JavaScript → one framework like React. Then explore APIs, Git, and databases as you grow your skills. Which technology are you learning right now? 🚀👇 Connect for More: Amaan Khan . . #LearnToCode #WebDevelopment #Programming #FrontendDevelopment #CodingResources #HTML #CSS #JavaScript #ReactJS #GitHub #APIs #SoftwareEngineering #TechLearning #Developers #MySQL #trending #code #AI #ML
To view or add a comment, sign in
-
-
🚀 New Blog Posted... Hello Developers 🖐, We often start learning JavaScript by writing code, but many struggle to truly understand what happens behind the scenes. So I wrote a beginner-friendly article explaining the core building blocks of JavaScript: • Variables • Data Types • Scoping • var, let, and const In this article, I break down these concepts in the simplest way possible with visual explanations and practical examples so beginners can understand how JavaScript actually works under the hood. If you're starting your JavaScript journey or revising fundamentals, this will help. 🗒️Read the full article here 👇 : https://lnkd.in/ge26UnkM Feedback from fellow developers is always welcome. Thanks to my mentors for the community & support. Hitesh Choudhary Anirudh Jwala Akash Kadlag Piyush Garg #chaicode #JavaScript #WebDevelopment #Programming #Coding #FrontendDevelopment #LearnToCode
To view or add a comment, sign in
-
🚀 JavaScript Learning Series – Understanding Some Basic Terms First Before we start learning JavaScript, it’s important to understand a few basic programming terms. These terms will help us better understand how JavaScript works. 1️⃣ What is a High-Level Language? A high-level language is a programming language that is easy for humans to read and write. It uses simple and understandable syntax compared to low-level languages like machine code. Examples: JavaScript, Python, Java. 2️⃣ What is an Object-Oriented Programming Language? Object-Oriented Programming (OOP) is a way of writing programs using objects. Objects contain data and functions together. For example, a Car object can have: • properties → color, model • methods → start(), stop() 3️⃣ What is an Interpreted Language? An interpreted language runs code line by line instead of compiling the entire program before execution. JavaScript is interpreted by the JavaScript engine inside the browser. 4️⃣ What is a Synchronous Language? Synchronous execution means code runs one step at a time in order. The next line of code runs only after the previous line finishes. Example: console.log("Step 1") console.log("Step 2") console.log("Step 3") Output: Step 1 Step 2 Step 3 Each line waits for the previous one to complete. 5️⃣ What is a Single-Threaded Language? JavaScript is single-threaded, which means it can execute one task at a time. It has only one call stack to process code. Even though JavaScript is single-threaded, it can still handle asynchronous operations using mechanisms like the event loop (which we will learn later). 💡 Understanding these concepts will make it easier to learn how JavaScript works internally. 📌 In the next post, we’ll finally answer the main question: What exactly is JavaScript and why do we need it? ❓ Quick question: Do you think JavaScript is an interpreted language or a compiled language? Share your answer in the comments. #JavaScript #Programming #WebDevelopment #FrontendDevelopment #LearnToCode
To view or add a comment, sign in
-
#Day_18 ⚡ Day 18 – 30 Days Coding Challenge Today I explored JavaScript Modules and Asynchronous Programming, which are very important concepts for building scalable and efficient applications. 📌 Topics I Learned ✔ JavaScript Modules (ES6 Modules) ✔ Using export and import keywords ✔ Organizing code into separate files ✔ Basics of Asynchronous JavaScript ✔ Understanding how setTimeout() works 📖 Concepts I Practiced • Created a separate module ("Mathutil.js") and exported functions • Imported functions into another file ("index.js") • Learned how modular code improves readability and reusability • Practiced asynchronous behavior using setTimeout() • Understood how JavaScript executes tasks non-blocking 🧠 Example – Module // Mathutil.js export const PI = 3.14; export function getArea(r){ return PI * r * r; } 🧠 Example – Import import { PI, getArea } from './Mathutil.js'; console.log(PI); console.log(getArea(5)); ✨ Key Understanding • Modules help organize code into reusable parts • Asynchronous programming allows JavaScript to handle multiple tasks efficiently without blocking execution This was a great step toward writing clean, modular, and scalable JavaScript code. Continuing to learn and improve every day 💻🔥 #30DaysCodingChallenge #JavaScript #WebDevelopment #AsyncJavaScript #FrontendDevelopment #FullStackDeveloper #SoftwareDeveloper #CodingJourney #LearningInPublic #Programming #BengaluruIT #Pune #BTM_Layout Fortune Cloud Technologies Private Limited
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