Category: HTML

Made by Marvin Drude

Useful features in JavaScript ES6

Constants The support of constant variables was added in ES6. This allows to define variables which cannot be altered after first initialization. Although be careful, if for example you define an object as constant, you can still alter the object itself, for example adding new properties. String Interpolation Everyone knows the string concatenation from before: …

Default Parameters in JavaScript ES6

If you ever programmed in other languages than JavaScript, you are might be familiar with the concept of default parameter values if given parameter is not passed through. This concept exists in C# for example. We all know how tiring it is to do the checks for parameters in ES5. In this example, the log …

JavaScript Animation with timings

I see alot of people use big bloated libraries to animate HTML. Besides having the option to do alot of those things with pure CSS, you might still want to have the control using JavaScript to have more possibilities. I am going to show you the whole code first and after that I am going …

Node.js socket.io simple drawing example

Introduction In the following article I am going to show you how to setup a simple Node.js application with socket.io and express in order to have live bidirectional communication between http client (Browser) and your server. You should already have a basic understanding of JavaScript, HTML, CSS for this tutorial. Requirements In order to follow …