Compiler
JS
JS Strings
Run
<!DOCTYPE html> <html> <body> <h1>Strings</h1> <script> var str1 = 'Single quoted string'; var str2 = "Double quoted string"; var str3 = "it's okay"; var str4 = 'He said "Goodbye"'; var str5 = "She replied 'Calm down', please"; var str6 = 'it\'s okay'; var str7 = "He said \"Goodbye\""; var str8 = 'She replied \'Calm down, please\''; document.write(str1 + "<br>" + str2 + "<br>" + str3 + "<br>" + str4 + "<br>" + str5 + "<br>" + str6 + "<br>" + str7 + "<br>" + str8); </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