Recommended HTML head links
Make your HTML documents more SEO-friendly by including these lines in your <head>
element.
30 seconds of code provides a curated collection of short code snippets for all your development needs. Our collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
Make your HTML documents more SEO-friendly by including these lines in your <head>
element.
JavaScript arrays have a very robust API offering some amazing tools. Learn the 4 must-know JavaScript array methods in this quick guide.
JavaScript's arrow functions are seemingly the same as regular functions, but there are some important differences you need to know.
Currying is a process that transforms a function that takes multiple arguments into a series of functions that each take a single argument.
A binary search tree is a hierarchical data structure of ordered nodes with at most two children each.
A custom data structure to keep track of value frequencies in an array.
Sort an array of numbers, using the heapsort algorithm.
Did you know you can get the index of an array item in a JavaScript for...of loop? Learn how with this bite-sized tip.
Maps and objects are very similar, but they have some differences that can help you decide which one better fits your use-case.
Creates a card that displays additional content on hover.
Creates a typewriter effect animation.
Learn how to add or remove event listeners from elements with ease.
Calculate the ranking of an array based on a comparator function in JavaScript.
The Caesar cipher is a simple substitution cipher, which can be easily implemented with a few lines of JavaScript code.
JavaScript uses callback functions quite a lot. From event listeners to asynchronous code, they're an invaluable tool you need to master.
Closures are used frequently, yet often misunderstood. Understanding them in depth is crucial to be able to write clean, maintainable code.
Function arity is a simple, yet useful concept in functional programming, especially when combined with currying.
Implement the Luhn Algorithm, used to validate a variety of identification numbers.
Did you know you can define an iterator for any JavaScript value? This quick tip will show you how.
Ever needed to convert a NodeList
to an array in JavaScript? Here's the fastest way to do so.
Learn how you can compare two objects in JavaScript using various different techniques.
Quickly and easily replace or append a value in a JavaScript array.
Ever wanted to show or hide one or more elements in HTML, using JavaScript? Turns out it's very easy to do so.
Renders a countdown timer that prints a message when it reaches zero.