If you have any query feel free to chat us!
Happy Coding! Happy Learning!
In "DOM + Modern JS - Class II," we'll continue exploring more advanced DOM manipulation techniques and modern JavaScript concepts. We'll cover topics such as event delegation, working with forms, using fetch API for AJAX requests, and using modern JavaScript features like async/await. Let's dive in:
Event Delegation (Continued): Event delegation allows you to handle events on multiple elements efficiently, especially for dynamically generated content.
Working with Forms: You can work with form elements and handle form submissions.
Fetch API and AJAX Requests: Fetch API allows you to make AJAX requests to retrieve data from APIs or web servers.
Async/Await: Async/await provides a cleaner way to work with promises and asynchronous code.
Local Storage: Local Storage allows you to store key-value pairs locally in the user's browser.
Creating and Using Modules: Organize your code into modules for better maintainability and code reuse.
These are some more advanced DOM manipulation techniques and modern JavaScript concepts to enhance your web development skills. Practice regularly and explore real-world projects to become proficient in these topics.
If you have any specific questions or need further clarification on any topic, feel free to ask! Happy coding!
javascriptCopy code
// Module: utils.js export function add(a, b) { return a + b; } // Module: main.js import { add } from "./utils.js"; const result = add(3, 5); // Output: 8
javascriptCopy code
// JavaScript localStorage.setItem("username", "John"); // Store data const username = localStorage.getItem("username"); // Retrieve data localStorage.removeItem("username"); // Remove data localStorage.clear(); // Clear all data
javascriptCopy code
// JavaScript async function fetchData() { try { const response = await fetch("https://api.example.com/data"); const data = await response.json(); // Process data } catch (error) { console.error("Error fetching data: " + error); } } fetchData();
javascriptCopy code
// JavaScript fetch("https://api.example.com/data") .then((response) => response.json()) .then((data) => { // Process data }) .catch((error) => { console.error("Error fetching data: " + error); });
javascriptCopy code
// JavaScript const myForm = document.getElementById("myForm"); myForm.addEventListener("submit", function (event) { event.preventDefault(); // Prevent default form submission behavior const formData = new FormData(event.target); const username = formData.get("username"); const password = formData.get("password"); // Process form data or send it to the server });
htmlCopy code
<!-- HTML --> <form id="myForm"> <input type="text" name="username" /> <input type="password" name="password" /> <button type="submit">Submit</button> </form>
javascriptCopy code
// JavaScript const todoList = document.getElementById("todoList"); todoList.addEventListener("click", function (event) { if (event.target.classList.contains("deleteBtn")) { event.target.parentElement.remove(); } });
htmlCopy code
<!-- HTML --> <ul id="todoList"> <li>Task 1 <button class="deleteBtn">Delete</button></li> <li>Task 2 <button class="deleteBtn">Delete</button></li> <!-- More dynamically added tasks with delete buttons --> </ul>
Comments: 24
Kindly check the lecture number 6. Lifecycle of a Change in 1. Git and Github The above lecture is not related to the course please update it ASAP Thank you
From where can I download the files which love babbar says he has uploaded on dashboard ??
I have attached the link https://github.com/lakshayk12/ANN_optimization_BTP
bro, i paid for the course, but still can't access the course. do something
Paid for the course but it still locked, can solve this problem please, when you take the payment the couse should be unlocked, evey time i have to message for any purchase
Now your Paypal payment is accepted and your course is activated successfully. Please leave your valuable feedback.
Why i am being asked for payment if i am already enrolled in the course
Dear anand, your payment is now updated check your course, apologize for several delays. Please leave your valuable feedback.
thanks its working now
hello ,I have a doubt
hello i have a doubt
hi
I'm paying through my Card, but it giving an error. why ? how we can purchase a course in Pakistan. Paypal is banned here
can we download the videos
i done my payment for mern stack development love babbar but cant acces to course kindly give me access
Dear Krishnapal your payment is already accepted go and check back.
Why i am being asked for payment if i am already enrolled in the course
Dear Shivansh, if you already done your payment then contact us on our official Email id [email protected] or reply here.
Why i am being asked for payment if i am already enrolled in the course
Dear p8354046, if you already done your payment then contact us on our official Email id [email protected] or reply here.
Why i am being asked for payment if i am already enrolled in the course
Dear, Don't worry now your problem is solved check your id.
Why i am being asked for payment if i am already enrolled in the course
Yes bro
I'm facing same issue
Dear, Don't worry now your problem is solved check your id.
i want debit card option
how can i assure that this is not scam?
i have same doubt is this website real or a fraud
No its not any fraud. its genuine if you need any proof please contact us via email.
No it's not any scam, its genuine if you need any proof please contact us via email.
how to do payment ?
Click on Watch now button then click next video then payment option is showing
i am unable to access the video even i have already completed my payment .
Your problem is solved
plz add codes lecture wise ! it wold be great and helpful also
now we have added starter package in lecture 2nd, go now and download it.
how to view this one
Why video not play
Now it's working.
Thank you for the access of the videos. It would be greatful if I could no the way to download the videos
Use idm to download
ok
Hello bro can you share course with me?
hello everyone