Compiler
JS
JS Types
Run
<!DOCTYPE html> <html> <body> <h1>The typeof Operator</h1> <script> document.write( "'Peter' is " + typeof "Peter" + "<br>" + "4.15 is " + typeof 4.15 + "<br>" + "NaN is " + typeof NaN + "<br>" + "false is " + typeof false + "<br>" + "[0, 1, 2, 3] is " + typeof [0, 1, 2, 3] + "<br>" + "{name:'Peter', age:26} is " + typeof {name:'Peter', age:26} + "<br>" + "new Date() is " + typeof new Date() + "<br>" + "function () {} is " + typeof function () {} + "<br>" + "myBike is " + typeof myBike + "<br>" + "null is " + typeof null ); </script> </body> </html>
Editor Commands
Commands
Shortcut Key (Win)
Shortcut Key (Mac)
selectAll
Ctrl-A
Cmd-A
singleSelection
Esc
-
killLine
-
Ctrl-K (Mac)
deleteLine
Ctrl-D
Cmd-D
undo
Ctrl-Z
Cmd-Z
redo
Ctrl-Y
Shift-Cmd-Z, Cmd-Y
undoSelection
Ctrl-U
Cmd-U
redoSelection
Alt-U
Shift-Cmd-U
goDocStart
Ctrl-Home
Cmd-Up, Cmd-Home
goDocEnd
Ctrl-End
Cmd-End, Cmd-Down
goLineStart
Alt-Left
Ctrl-A
goLineEnd
Alt-Right
Ctrl-E
goLineRight
-
Cmd-Right
goLineLeft
-
Cmd-Left
goLineUp
Up
Ctrl-P
goLineDown
Down
Ctrl-N
goPageUp
PageUp
Shift-Ctrl-V
goPageDown
PageDown
Ctrl-V
newlineAndIndent
Enter
-
save
Ctrl-S
Cmd-S