SRsurya ravikumarinsuryaravikumar.hashnode.dev·Mar 19, 2024 · 1 min readObject/Array Destructuring in javaScript with an APIObject Destructuring <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Array and Object Destructuring Example</title> </head> <body> <div id="a...00
SRsurya ravikumarinsuryaravikumar.hashnode.dev·Mar 14, 2024 · 1 min read"Understanding Polyfills: Bringing Modern JavaScript Functionality to Older Browsers"<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Polyfill Example</title> <link rel="stylesheet" href="styles.css"> </head> <body> <h1> "Understandi...00
SRsurya ravikumarinsuryaravikumar.hashnode.dev·Mar 13, 2024 · 2 min read"Handling Errors in Async/Await Functions: A Practical Guide with UI Example"// Async function to simulate fetching data async function fetchData() { return new Promise((resolve, reject) => { // Simulating a network request setTimeout(() => { const randomNumber = Math.random(); console.log(ra...00
SRsurya ravikumarinsuryaravikumar.hashnode.dev·Mar 13, 2024 · 3 min read"Exploring JavaScript Closures: A Practical Guide with a Counter Example"src/script.js function createCounter() { let count = 0; function increment() { return ++count; } function decrement() { return --count; } function getCount() { return count; } return { incr...00
SRsurya ravikumarinsuryaravikumar.hashnode.dev·Oct 14, 2023 · 2 min readMy understaning of learning to solve promlems - the first issue2535. Difference Between Element sum and Digit Sum of an Array Look up the problem statement. the first solution for the problem is listed below but the bug was introduced. if you can find it share it with others. package das; public class differenc...00