Javascript promises tutorial with examples - LinuxConfig.org

While previously available via third party libraries, promises were introduced in Javascript, as a native feature, with ECMAScript6.
This is a companion discussion topic for the original entry at https://linuxconfig.org/javascript-promises-tutorial-with-examples