Explained first JS code snippet