Playgrounds
Snippets
Developers
Compiler
All
ActionScript
Ajax
AngularJS
Apache
AppleScript
ASP.NET
Bash
C
C#
C++
Coffee
CoffeeScript
ColdFusion
Command
CSS
Delphi
Django
ES6
GLSL
Grunt
Gulp
HAML
Haskell
HTML
iOS
Jade
Java
JavaScript
jQuery
JSX
Less
LUA
MDX
MySQL
Objective
Other
Pascal
Perl
PHP
Plain text
PowerShell
Processing
Progress
Prolog
Pseudocode
Python
Rails
RegExr
Ruby
SASS
Scala
Scheme
SCSS
SmallBASIC
Smarty
SQL
Stylus
SVG
Swift
TypeScript
VHDL
X++
XHTML
XML
Xojo
XSLT
New snippet
New playground
Sign up
Login
Upload
Playgrounds
Snippets
Developers
Sign up
Login
Codepad is a place for developers to share code snippets (PHP, Java, Bash, C, C++, Python and more). Create your HTML, CSS and JS Demos.
Sign up
Learn more
JavaScript snippets by Aurelien Dotpro
Style console log messages
JavaScript
0
4
1550
Remove last chracter of a string
JavaScript
0
1
1213
Detect Browser language
JavaScript
0
1
1363
generate random HEX color
JavaScript
0
0
1139
Edit the text of any DOM element from viewport
JavaScript
0
0
1145
ES6 Array
JavaScript
0
0
1150
JS Scroll Event
JavaScript
0
0
1263
Basic Arrow Function
JavaScript
0
0
1203
Better console.log()
JavaScript
0
0
1039
Delete branch locally
JavaScript
0
0
1170
Check if a string is within a string (indexOf)
JavaScript
0
0
1184
Intersection Observer basic example
JavaScript
0
0
915
Element appear via Intersection Observer
JavaScript
0
1
918
Detect iPhone model (from 1st gen to XS Max)
JavaScript
0
0
1021
Dad Joke API exemple
JavaScript
0
0
928
Ternary variable delcaration
JavaScript
0
0
759
Mutation Observer simple example
JavaScript
0
0
924
Simple Local Store implementation
JavaScript
0
0
881
Mutation Observer on class change
JavaScript
0
0
2256
regex number
JavaScript
0
0
911