Share JavaScript code with CodeThis
JavaScript runs everywhere — browsers, servers, build tools, edge workers. Sharing a snippet should be just as portable.
Paste JavaScript nowWhat you get
- JavaScript-aware syntax highlighting via CodeMirror
- Instant shareable link — no signup required
- Optional expiration (7 days, 30 days, permanent)
- Password protection for private pastes
- Works with the REST API and MCP server
- Rich markdown and MDC components alongside code
Common use cases for JavaScript pastes
- Browser scripts and DOM helpers
- Node.js one-liners and scripts
- React / Vue component examples
- Bug reproductions for maintainers
Example
const once = (fn) => {
let called = false, result
return (...args) => {
if (called) return result
called = true
return (result = fn(...args))
}
}
Related languages
Ready to share some JavaScript?