Advertising
June
25

Encode and Decode HTML entities using pure Javascript

Learn how to encode and decode to html entities a string using javascript.

June
23

How to get the pixel color from a canvas on click or mouse event with Javascript

Learn how to retrieve the color of a pixel on a canvas element using javascript with different mouse events.

June
20

The canvas has been tainted by cross-origin data and tainted canvases may not be exported

Learn why those errors appears while you work on canvas and add images from another domain or how to solve it if it comes from your own domain.

June
19

How to iterate over an Object with Javascript and jQuery optimally

Learn many ways to iterate over an object properly in Javascript.

June
18

How to create a Custom Event for a DOM element in Javascript

Learn how to dispatch custom events in Javascript properly.

June
11

How to detect if caps lock (uppercase) is pressed with Javascript and jQuery

Learn how to detect if the user input has been pressed while caps lock is on.

June
09

How to prevent modification of an object in Javascript and prevent them from being accessible in the console

Learn how to prevent modification of a javascript object and prevent variables from being accesible in the console.

June
08

How to check if an object has a property properly in javascript

Learn different ways to know if an object has a property and know which of the provided methods is faster.

June
07

How to convert an Uint8Array to string in Javascript

Learn multiple ways to convert an Uint8Array to string in Javascript.

May
17

What is the difference between call and apply property when invoking a function

Learn when use call and when use apply in your code.

Our Code World

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.