Notes on web development
Kontrast is compatible with all browsers that support a recent version
ECMAScript edition 2015 (ES6). Therefore,
we recommend using a modern browser such as Firefox, Chrome, Edge or
Safari, as they all support ES6. Note that Kontrast is not compatible
with any version of Internet Explorer.
In every major browser there are developer tools that facilitate coding and debugging. You can usually open the developer tools by pressing F12 (in Chrome and Edge) or Ctrl-Shift-I (Firefox).
To see console log, open the developer tools first. Then click
which you may find in the tab bar above. If the window is too narrow,
you may see a
» sign instead of
this case, click the
» sign and select
We recommend a good text editor such as Atom, Notepad++, SublimeText, Vim and Emacs. These editors have features like syntax highlighting, brace matching, auto-completion and auto-indentation.
A text editor can often be extended using plugins, which allows you to
use additional tools, such as linters and code formatters. Syntax
linters are tools that statically analyze your code to find
mistakes (such as misleading indentation, unused and undeclared
variables, etc.). Code formatters automatically indent and (line-)warp
your code, which is very useful.
We can recommend using
as a linter. You can also use
as a linter when using the
--checkJs option (details). A very good code formatter is
A common way to install the above mentioned software is using the
node package manager (npm), which is bundled with
The following steps show how to install a package:
Download node.js for your operating system and install the software.
Open a terminal (On Windows: Open
Command promptor type Windows + R, type
cmdand press enter)
npm install PACKAGE-NAME --globaland press enter. Replace PACKAGE-NAME with, e.g.,
Built-in mathematical functions
MDN page on the
IEEE 754 64-bit floating point numbers.