A great project to get started with hexagons (for example, a map).
Using POO can help to structure the application code with the d3 library.
publint lints npm packages for packaging errors, ensuring maximum compatibility across environments. This means that consumers of your package can safely run your code in any platform, e.g. Vite, Webpack, Rollup, Node.js, etc.
A great example!
Vérifier la validité des liens d'une page et y ajouter une classe .status comme .status404
js/ts utils
The technologies that are gaining popularity. It is based on github stars.
A lot of so useful projects for web development!
Check them here: https://unjs.io/
Benchmarking javascript snippets :)
Numbers:
const formatter = Intl.NumberFormat(LOCALE, { notation: 'compact' })
Currency:
Intl.NumberFormat(LOCALE, {
notation: 'compact',
style: 'currency',
currency: 'ZWD'
})
It uses WebGL for it.
Using JS to generate a default avatar with one letter:
function genAvatar(name) {
try {
// Match General_Category=Letter
const match = name.match(/\p{L}/u);
return (match && match[0]) || null;
} catch {
return name[0] || null;
}
}
In the last 14 months (from Oct-2021 to Nov-2022), DevJobsScanner has analyzed more than 12M developer jobs.
- JS/TS
- Python
- Java
- C#
- PHP
- C/C++
- Ruby
- Go
How to handle fetch API errors ?
It throws on API Network Error only...
A curated list of algorithms sorted in two categories: Beginner and Advanced
Specific questions on the JS language
JavaScript Repository of TheAlgorithms, which implements various algorithms and data structures in JavaScript.
For education only