Storage

Local storage

Key Value
{{ key }} {{ item }}

Session storage

Key Value
{{ key }} {{ item }}

Cookies

{{ document.cookie }}
Key Value
{{ key }} {{ item }}
HTML Elements

H1

Paragraph.

H2

Paragraph.

H3

Paragraph.

H4

Paragraph.

H5

Paragraph.

H6

Paragraph.

Which browser?

User agent:

{{ window.navigator.userAgent | italics }}

Chrome: {{ ISCHROME | tick }}

Firefox: {{ ISFIREFOX | tick }}

MS Internet Explorer {{ ISMSIE | tick }}


Javascript:

const ISCHROME = window.navigator.userAgent.indexOf("Chrome") > -1 const ISMSIE = window.navigator.userAgent.indexOf("MSIE ") > -1 const ISFIREFOX = window.navigator.userAgent.toLowerCase().indexOf('firefox') > -1
Canvas: element dimensions

A canvas has a DOM width and height (canvas.width, canvas.height) and a CSS width and height (canvas.style.width, canvas.style.height).

Dimensions of canvas element: