Category Archives: javascript

JavaScript – Matter.js the 2D physics engine .

The tutorial today is about Matter.js – 2D physics engine for the web. Let’s try one simple example. You need a folder named project with index.html file and a js folder with index.js file. The content of index.html is:

The content of index.js file from js folder is:

Let’s see the result of… Read More »

JavaScript – filter an array with Google Chrome.

This problem can be easily resolved in the Google Chrome browser. You must press F12 to start Chrome Developer Tools. Then add the java script to the Console. The filter method is part of the ECMAScript 5. The result array contains the values that are not ‘Blue’.