30 seconds of code

Curated collection of useful JavaScript snippets that you can understand in 30 seconds or less.

Start typing a keyword to see matching snippets or click to view the whole list.

About us

30 seconds provides high-quality learning resources for developers of all skill levels in the form of snippet collections in various programming languages since its inception in 2017. Today, 30 seconds consists of a community of over 250 contributors and more than 10 maintainers, dedicated to creating the best short-form learning resources for software developers. Our goal is to make software development more accessible and help the open-source community grow by helping people learn to code for free.