Snippet Collections

30 seconds of code provides a wide variety of snippet and article collections for all your development needs. Explore individual language collections or browse through collections about specific topics and programming concepts.

  • JavaScript String Casing

    Convert between the most common string casing formats with pure JavaScript and a sprinkle of regular expressions.

    Collection · 7 snippets

  • JavaScript Generator Functions

    JavaScript generator functions are an advanced yet very powerful ES6 feature, which you can start using in your code right now.

    Collection · 17 snippets

  • JavaScript Array Set Operations

    Learn how to apply mathematical set operations to JavaScript arrays.

    Collection · 12 snippets

  • CSS Button Transitions

    Add some life to your buttons with these simple CSS transitions.

    Collection · 5 snippets

  • JavaScript Random Value Generators

    Quickly and easily generate random integers, strings, booleans, arrays and hex color codes using JavaScript.

    Collection · 7 snippets

  • Web Storage Essentials

    Master web storage in JavaScript with this collection of tips and tricks.

    Collection · 5 snippets

  • Browser Scrolling with JavaScript

    Learn how to manipulate the scroll position of your website with JavaScript and make your website stand out.

    Collection · 5 snippets

  • JavaScript Array Initialization

    Discover the inner workings of JavaScript arrays and learn about the different ways to initialize them.

    Collection · 5 snippets

  • CSS Background Patterns

    Learn how to create a variety of background patterns using CSS.

    Collection · 4 snippets

  • JavaScript Object Cloning

    Easily clone JavaScript objects and arrays using various techniques.

    Collection · 4 snippets

  • React Components

    Discover a collection of reusable function components for React 18.

    Collection · 34 snippets

  • HTTP Requests in JavaScript

    Easily perform HTTP requests in JavaScript and elevate your web development skills.

    Collection · 6 snippets

  • Web development

    Discover dozens of web development articles, covering a wide variety of topics and technologies.

    Collection · 14 snippets

  • JavaScript Object Key Selection

    Pick and omit keys from JavaScript objects easily, using the snippets in this collection.

    Collection · 4 snippets

  • Cheatsheets

    A collection of cheatsheets to bookmark and come back to whenever you need to look up anything.

    Collection · 15 snippets