Compare commits

...

4 Commits

Author SHA1 Message Date
Jan Pęski
4ea61f8b6c Merge 3528d92fcb into 559d03ecf3 2024-02-27 17:12:23 +08:00
Julien Le Coupanec
559d03ecf3 Merge pull request #372 from cunnellp5/cunnellp/vscode/add-command-and-cleanup-spaces
updates vscode cheat sheet
2024-02-26 18:25:32 +01:00
cunnellp5
bea751612a updates vscode cheat sheet with one command 2024-02-15 07:10:18 -07:00
Jan Pęski
3528d92fcb Update javascript.js
Added basic syntax.
2022-12-08 11:24:48 +01:00
2 changed files with 26 additions and 3 deletions

View File

@@ -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
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object

View File

@@ -7,6 +7,7 @@
#### General
- `Ctrl`+`Shift`+`P`, `F1`: Show Command Palette
- `Ctrl`+`Shift`+`T`: Open last closed tab
- `Ctrl`+`P`: Quick Open, Go to File
- `Ctrl`+`Shift`+`N`: New window/instance
- `Ctrl`+`W`: Close window/instance