Day 5 Short polling Is used to check for updates or new data without continuously refreshing the entire page or resource by sending repeated requests. - Short-lived requests - Less resource-intensive - Scaling issues - Used in notifications etc #javascript #FrontEndDeveloper
Saurabh Ramesh Kacholiya’s Post
More Relevant Posts
-
#JavaScript Insight: Know when to use `map()`, `filter()`, and `reduce()`. These array methods are powerful tools for transforming, filtering, and aggregating data. They can make your code more functional and concise. • map(): Transform each element, and create a new array. • filter(): Keep elements that pass the test. • reduce(): Boil down to a single value. In a nutshell ↓ map() for changes, filter() for selections, reduce() for summaries. ✅ Follow Aditya Singh 📈 for more #100DaysOfCode #JavaScript
To view or add a comment, sign in
-
🚀 Mastering #LocalStorage in #JavaScript! 🚀 Did you know that storing objects directly in local storage can lead to unexpected results? 🔑 Key Insight: Always use #JSON.stringify to store objects and #JSON.parse to retrieve them. This ensures your data remains intact! #JavaScript #WebDevelopment #LocalStorage #CodingTips
To view or add a comment, sign in
-
createBrowserRouter , loader , useLoaderData from react-router-dom is making things easy for routing and loading data 🌐 { path:'/menu', element: <Menu />, loader: menuLoader }, #reactJs #javascript #redux #development
To view or add a comment, sign in
-
#Angular 18 is set to be released in less than 2 weeks 💎 In the new version we will be able to use functions for the redirects in the Route object's redirectTo property, providing access to more flexible routing options: 🔸 Route data 🔸 Query parameters 🔸 Route Config 🔸 URL #typescript #webdevelopment #javascript
To view or add a comment, sign in
-
Understanding JavaScript closures is a game-changer for every developer. 🚀 They enable powerful techniques like data encapsulation. Learn more in this carousel! #JavaScript #WebDevelopment
To view or add a comment, sign in
-
Ever needed to delay data fetching in your JavaScript application? Here’s a neat way to create an asynchronous function that returns data after a 3-second delay using `setTimeout`, `async`, and `await`. This approach makes your asynchronous code cleaner and easier to understand, especially when dealing with delays or waiting for data in real-world applications. What are your favorite async patterns in JavaScript? Let’s discuss! #JavaScript #AsyncProgramming #WebDevelopment #CodeTips #FrontendDevelopment
To view or add a comment, sign in
-
Quick JavaScript tip 💡: `array.sort` modifies the original array, while `array.toSorted` returns a new sorted array without changing the original. Keep your data safe and sorted! 🤗 #Javascript #CodingTips #softwareengineer #softwaredevelopment
To view or add a comment, sign in
-
We can generate sample pagination data based on the page using Array.from in Javascript as shown below. #javascript #softwaredevelopment #SoftwareEngineering #100daysofcoding #webdeveloper #FrontEnd
To view or add a comment, sign in
-
🚀 JavaScript this Gotcha! 🤔 Why does this code log undefined? const obj = { name: "John", getName() { return `name is ${this.name}`; } }; const newobj = obj.getName; console.log(newobj()); // Output: undefined 💡 The Issue: When newobj is assigned, the context (this) is lost. this no longer refers to obj but to the global object (undefined in strict mode). ✅ Fix It: 1️⃣ Use .bind(): const newobj = obj.getName.bind(obj); 2️⃣ Use .call(): console.log(newobj.call(obj)); 3️⃣ Use an arrow function: const newobj = () => obj.getName(); Always remember: this depends on how the function is called! #JavaScript #CodingTips #WebDev
To view or add a comment, sign in
-
Just created my password generator with HTML, CSS, and JS! Learning by doing. Repo 🔗 https://lnkd.in/gFCqkSEG #learnInPublic #html #css #javascript #github
To view or add a comment, sign in