Case conversion in JavaScript
A complete guide to case conversion in JavaScript, including camel case, kebab case, snake case, Pascal case, title case and sentence case.
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.
A complete guide to case conversion in JavaScript, including camel case, kebab case, snake case, Pascal case, title case and sentence case.
Learn how JavaScript handles mutable data, such as objects and arrays, and understand how shallow cloning and deep cloning work.
Learn how JavaScript's iterators work and how you can use them to level up your projects by understanding these short code examples.
Learn how to get a nested object property by key or a path string in JavaScript, and how to search for nested values in an object.
Learn how to group and count the values of a JavaScript array using simple array methods.
Discover the inner workings of JavaScript arrays and learn about the different ways to initialize them.
Testing React components that update asynchronously is pretty common. Learn how to deal with common issues and speed up your testing.
Learn how to create an animated button with a ripple effect when clicked.
Learn how to perform various transformations on the keys of a JavaScript object.
Use the Proxy object to implement the Observable pattern in JavaScript.
There are many ways to iterate and transform array data in JavaScript. Learn how each one works and where you should use them.
Learn how to use React hooks to handle window events, media queries, server-side rendering and more.
Create your custom textarea components, with a word or character limit in React.
Learn how to programmatically copy text to clipboard with a few lines of JavaScript and level up your web development skills.
Learn the differences between JavaScript ES6 arrow functions and regular functions and how they affect event listener callbacks.
Create your very own star rating component in React.
Learn how to implement array zipping, a grouping of elements based on position in the original arrays, and its inverse, unzipping.
Ever wanted to sort an array of objects, but felt like it was too complex? Here's a robust solution for just that.
Group array elements into two or more arrays arrays, depending on the provided function's return value.
JavaScript provides a handful of native data structures that you can start using in your code right now.
Create a hover effect where the gradient follows the mouse cursor, with CSS and a little bit of JavaScript.
Track the browser's location hash value and search params with this pair of custom hooks.
Create your own static file server with Node.js in just 70 lines of code.
Learn different ways to memoize function calls in JavaScript as well as when to use memoization to get the best performance results.