Javascript

JavaScript is a programming language used to make web pages interactive. It runs on your visitor's computer and doesn't require constant downloads from your website.

How to handle JavaScript Syntax Error: The only valid numeric escape in strict mode is '\0'
Learn how to easily deal with this JavaScript syntax error.
How to cut, copy, paste and select all text in Ace Editor
Learn how to manipulate the basic tasks with text in Ace Editor.
How to use a custom (monospaced) font in Ace Editor
Learn how to easily configure and use a custom font in Ace Editor.
How to create an array of N length without using loops in JavaScript
Learn how to easily create an array of any length without using loops in JavaScript.
How to print the numbers from 1 to 100 without using loops in JavaScript
Learn how to easily print the numbers from 1 to 100 or a custom range without using loops in JavaScript.
How to create MD5 hashes in JavaScript
Learn how to create easily the MD5 hash of any string in JavaScript.
How to render a SVG string/file onto a canvas and export it to PNG or JPEG with a custom resolution (preserving quality) in JavaScript
Learn how to easily render an SVG string into a canvas and then export it to PNG or JPEG with the size that you want without losing quality.
How to implement a timeout for JavaScript Promises
Learn how to easily implement a custom timeout to any JavaScript Promise.
How to reverse an array in JavaScript preserving the original order of the input array
Learn how to easily reverse an array optimally without modifying the original order of the input array.
How to switch from front camera to rear camera (facing back) with JavaScript (HTML5) in the Browser
Learn how to switch from the camera in your mobile device with JavaScript in the browser.