<aside> <img src="/icons/add_gray.svg" alt="/icons/add_gray.svg" width="40px" /> Quick Capture

</aside>

<aside> <img src="/icons/command-line_gray.svg" alt="/icons/command-line_gray.svg" width="40px" /> Code Snippets

Code Snippets

</aside>

<aside> <img src="/icons/info-alternate_gray.svg" alt="/icons/info-alternate_gray.svg" width="40px" /> The Scratch Pad section is to quickly capture the code snippets & later be organized based on languages & labels in the above section

</aside>

<aside> <img src="/icons/sticker_gray.svg" alt="/icons/sticker_gray.svg" width="40px" /> Scratch Pad

<aside> <img src="/icons/command-line_gray.svg" alt="/icons/command-line_gray.svg" width="40px" /> Promise Chaining in JavaScript

function asyncTask(value) {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve(value * 2);
    }, 1000);
  });
}

asyncTask(5)
  .then(result => {
    console.log(result); // Output: 10
    return asyncTask(result);
  })
  .then(result => {
    console.log(result); // Output: 20
  })
  .catch(error => {
    console.error(error);
  });

</aside>

<aside> <img src="/icons/command-line_gray.svg" alt="/icons/command-line_gray.svg" width="40px" /> Functional Programming - Map, Filter, Reduce JavaScript

const numbers = [1, 2, 3, 4, 5];

const doubled = numbers.map(num => num * 2);
console.log(doubled); // Output: [2, 4, 6, 8, 10]

const evenNumbers = numbers.filter(num => num % 2 === 0);
console.log(evenNumbers); // Output: [2, 4]

const sum = numbers.reduce((accumulator, currentValue) => accumulator + currentValue, 0);
console.log(sum); // Output: 15

</aside>

</aside>


<aside> <img src="/icons/book-closed_gray.svg" alt="/icons/book-closed_gray.svg" width="40px" /> The above added data are for showcase purposes of this template. It may be incorrect.

</aside>

<aside> <img src="/icons/info-alternate_gray.svg" alt="/icons/info-alternate_gray.svg" width="40px" /> Made with ❤️ by Locominder

Logo.png

Explore more at : locominder.com/templates

Contact at : [email protected]

</aside>

<aside>

Personal Planner - New Year Offer

Best template to increase your personal growth and organization for 2025.

1.png

Get it now with the special discount ($19 $10) at 👇🏻

Personal Planner

</aside>