CybArt's public fiddles
-
A comparison evaluates to a Boolean
No-Library (pure JS), HTML, CSS, JavaScript
-
The typeof operator returns function if a value is a function
Even though a function is not a separate object type, but a subcategory of a regular object type
-
The typeof operator returns object if the value is null
No-Library (pure JS), HTML, CSS, JavaScript
-
The typeof operator returns object if a value is an object
No-Library (pure JS), HTML, CSS, JavaScript
-
The typeof operator returns number if the value is a number
No-Library (pure JS), HTML, CSS, JavaScript
-
The typeof operator returns string if the value is a string
No-Library (pure JS), HTML, CSS, JavaScript
-
The typeof operator returns boolean if the value if true or false
No-Library (pure JS), HTML, CSS, JavaScript
-
The typeof operator returns undefined if the value is undefined
No-Library (pure JS), HTML, CSS, JavaScript
-
Define several variables in a single statement
No-Library (pure JS), HTML, CSS, JavaScript
-
Defining a variable without var keyword makes it global
No-Library (pure JS), HTML, CSS, JavaScript
-
Using the var operator to define a variable makes it local to the scope in which it was defined
No-Library (pure JS), HTML, CSS, JavaScript
-
Change a variable value to a different data type
No-Library (pure JS), HTML, CSS, JavaScript
-
If a variable is not assigned any value, it contains undefined
No-Library (pure JS), HTML, CSS, JavaScript
-
Use curly braces to combine multiple statements in a code block
No-Library (pure JS), HTML, CSS, JavaScript
-
Enable strict mode for a selected JavaScript function
No-Library (pure JS), HTML, CSS, JavaScript
-
Enable strict mode in JavaScript
No-Library (pure JS), HTML, CSS, JavaScript
-
Block comment format used in enterprise applications
No-Library (pure JS), HTML, CSS, JavaScript
-
The <script> tag allows to include files outside of the page's domain
No-Library (pure JS), HTML, CSS, JavaScript
-
An external JavaScript file doesn't have to have the .js extension
No-Library (pure JS), HTML, CSS, JavaScript
-
You cannot have the string </script> anywhere in inline JavaScript
You would have to escape the forward slash