Javascript

Null character in JavaScript

The characters /u2028 and /u2029 are considered line terminators in JavaScript.

Remove HTML element

You can remove the last element on an HTML object with the following line:

document.body.lastElementChild.outerHTML--;

Remove last element of an array

theArray.length--;