JavaScript Tip 💡 You can use Object.entries() to iterate through the properties of an object and access both key and value. No need to do an object lookup for each iteration.

JavaScript

🔹 Promise.allSettled() The Promise.allSettled() method returns a promise that resolves after all of the given promises have either fulfilled or rejected, with an array of objects that each describes the outcome of each promise.

JavaScript

🔹 Promise.all() The Promise.all() method takes an array of promises as an argument and returns a single Promise that resolves to an array of the results of the input promises.

JavaScript

🔹 Promise.any() The Promise.any() method takes an array of promises as an argument and, as soon as one of the promises fulfills, returns a single promise that resolves with the value from that promise.

JavaScript

🔹 Promise.race() The Promise.race() method returns a promise that fulfills or rejects as soon as one of the promises in an array fulfills or rejects, with the value or reason from that promise.

JavaScript

TypeScript Tip 💡 You can use barrels to make your import statements more manageable. A barrel is a way to rollup exports from several modules into a single module. It's a very convenient way to group modules together and import them all from one place.

JavaScript

💡Js Tip ⏰ Performance Timing in Javascript 🔹Do you know you can check how much times your code takes to execute in Javascript 🔹Js has https://t.co/w6UJ2jfLDe() method which returns time in milliseconds #javascript #100DaysOfCode #development

JavaScript

JavaScript Tip: 😉 Filter Unique Values from an array using this one line code 👇🏻👇🏻👇🏻 #javascript #100daysofcode #code #Coding #Django #datascience #programming #webdevelopment #php #java #linux #css #codinglife #developer #tech #WomenWhoCode #CodeNewbie

JavaScript

JavaScript tip 💊 Easily swap variables by using destructuring.

JavaScript

💡 JavaScript Tip: You can use "Math.floor" to select a random item from an array

JavaScript

💛 JavaScript tip 💛 Don't measure elapsed times with Date. It only has millisecond precision and was not made to measure, e.g., execution times. Better use the performance API. It has up to microsecond precision and was made exactly for such purposes! 👇🏻

JavaScript

JavaScript Tip 💡 Use console.assert to make conditional log statements.

JavaScript
Browsers

The tweet will be reviewed and posted as soon as possible

{{ newSnippetForm.errors.url[0] }}

{{ newSnippetForm.errors.categories[0] }}