this fiddle is inspired by this articlećJavaScript String: substring, substr, sliceć
the difference between array.slice and array.splice
No-Library (pure JS), HTML, CSS, JavaScript