Skip to content
Branch: master
Find file Copy path
Find file Copy path
48 contributors

Users who have contributed to this file

@30secondsofcode @Chalarangelo @DeveloperTeamNG @flxwu @kingdavidmartins @fejes713 @darrenscerri @DanielRamosAcosta @atomiks @shlomif @MarcelMichau @DannyFeliz @adrianklimek @greenkeeper @sergei-zelinsky @sudo-suhas @ss18 @segmentationfaulter @iamsoorena @lawtrades @renatodeleao @peter279k @vivek28111992 @Maryom @mathiasbynens @conblem
26 lines (19 sloc) 1.93 KB


30 seconds of code

Short JavaScript code snippets for all your development needs

  • Visit our website to view our snippet collection.
  • Use the Search page to find snippets that suit your needs. You can search by name, tag, language or using a snippet's description. Just start typing a term and see what comes up.
  • Browse the JavaScript Snippet List to see all the snippets in this project or click individual tags at the top of the same page to narrow down your search to a specific tag.
  • Click on each snippet card to view the whole snippet, including code, explanation and examples.
  • You can use the button on the right side of a snippet card to copy the code to clipboard.
  • If you like the project, give it a star. It means a lot to the people maintaining it.

Want to contribute?

Credits & Sponsors

  • This repository is maintained by the 30-seconds organization on GitHub.
  • All snippets are licensed under the CC0-1.0 License, unless explicitly stated otherwise.
  • Logos, names and trademarks are not to be used without the explicit consent of the maintainers or owners of the 30 seconds GitHub organization.
  • Our website is powered by Netlify, Gatsby, Travis CI & GitHub.
You can’t perform that action at this time.