mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2026-01-29 14:48:01 -08:00
Compare commits
4 Commits
24d25f4d65
...
4ea61f8b6c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ea61f8b6c | ||
|
|
559d03ecf3 | ||
|
|
bea751612a | ||
|
|
3528d92fcb |
@@ -1,3 +1,25 @@
|
|||||||
|
/* *******************************************************************************************
|
||||||
|
* GETTING STARTED WITH THE WEB > JAVASCRIPT BASICS
|
||||||
|
* https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics
|
||||||
|
* ******************************************************************************************* */
|
||||||
|
|
||||||
|
// Variables & Data Types
|
||||||
|
let someVariable; // Declaring a variable.
|
||||||
|
someVariable = 'variableValue'; // Assigning a value to a predefined variable.
|
||||||
|
someVariable; // Calling a variable. Its name points to the value it stores.
|
||||||
|
|
||||||
|
let stirngVariable = 'string'; // Type: String
|
||||||
|
let numberVariable = 1; // Type: Number
|
||||||
|
let booleanVariable = true; // Type: Boolean
|
||||||
|
let arrayVariable = [0, 1, 2, 3]; // Type: Array
|
||||||
|
let objectVariable = { key: 'value'}; // Type: Object
|
||||||
|
|
||||||
|
// Comments
|
||||||
|
// This is a one-line comment
|
||||||
|
/*
|
||||||
|
Everything in between is a comment.
|
||||||
|
*/
|
||||||
|
|
||||||
/* *******************************************************************************************
|
/* *******************************************************************************************
|
||||||
* GLOBAL OBJECTS > OBJECT
|
* GLOBAL OBJECTS > OBJECT
|
||||||
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
|
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
|
||||||
|
|||||||
@@ -6,7 +6,8 @@
|
|||||||
|
|
||||||
#### General
|
#### General
|
||||||
|
|
||||||
- `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette
|
- `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette
|
||||||
|
- `Ctrl`+`Shift`+`T`: Open last closed tab
|
||||||
- `Ctrl`+`P`: Quick Open, Go to File
|
- `Ctrl`+`P`: Quick Open, Go to File
|
||||||
- `Ctrl`+`Shift`+`N`: New window/instance
|
- `Ctrl`+`Shift`+`N`: New window/instance
|
||||||
- `Ctrl`+`W`: Close window/instance
|
- `Ctrl`+`W`: Close window/instance
|
||||||
@@ -19,7 +20,7 @@
|
|||||||
- `Ctrl`+`C`: Copy line (empty selection)
|
- `Ctrl`+`C`: Copy line (empty selection)
|
||||||
- `Ctrl`+`↓/↑`: Move line down / up
|
- `Ctrl`+`↓/↑`: Move line down / up
|
||||||
- `Ctrl`+`Shift`+`K`: Delete line
|
- `Ctrl`+`Shift`+`K`: Delete line
|
||||||
- `Ctrl`+`Enter` / `Ctrl`+`Shift`+`Enter`: Insert line below / above
|
- `Ctrl`+`Enter` / `Ctrl`+`Shift`+`Enter`: Insert line below / above
|
||||||
- `Ctrl`+`Shift`+`\`: Jump to matching bracket
|
- `Ctrl`+`Shift`+`\`: Jump to matching bracket
|
||||||
- `Ctrl`+`]` / `Ctrl`+`[`: Indent / Outdent line
|
- `Ctrl`+`]` / `Ctrl`+`[`: Indent / Outdent line
|
||||||
- `Ctrl`+`Home` / `End`: Go to beginning / end of file
|
- `Ctrl`+`Home` / `End`: Go to beginning / end of file
|
||||||
@@ -136,7 +137,7 @@
|
|||||||
|
|
||||||
- [`Wrap Console Log`](https://marketplace.visualstudio.com/items?itemName=midnightsyntax.vscode-wrap-console-log): Wrap to console.log by word or selection.
|
- [`Wrap Console Log`](https://marketplace.visualstudio.com/items?itemName=midnightsyntax.vscode-wrap-console-log): Wrap to console.log by word or selection.
|
||||||
|
|
||||||
- [`Bracket Pair Colorizer`](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer): Allows matching brackets to be identified with colours.
|
- [`Bracket Pair Colorizer`](https://marketplace.visualstudio.com/items?itemName=CoenraadS.bracket-pair-colorizer): Allows matching brackets to be identified with colours.
|
||||||
|
|
||||||
## My Settings
|
## My Settings
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user