Compiler
JS
JS Operators
Run
<!DOCTYPE html> <html> <body> <h1>JavaScript Incrementing and Decrementing Operator</h1> <script> var a = 5; var b = ++a; // Pre-increment document.write("Value of A: " + a + "<br>"); document.write("Value of B: " + b + "<br><br>"); var c = 5; var d = c++; // Post-increment document.write("Value of C: " + c + "<br>"); document.write("Value of D: " + d + "<br><br>"); var e = 5; var f = --e; // Pre-decrement document.write("Value of E: " + e + "<br>"); document.write("Value of F: " + f + "<br><br>"); var g = 5; var h = g--; // Post-decrement document.write("Value of G: " + g + "<br>"); document.write("Value of H: " + h + "<br><br>"); </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