-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path00_Basic.txt
More file actions
51 lines (34 loc) · 1.15 KB
/
00_Basic.txt
File metadata and controls
51 lines (34 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
JAVASCRIPT :-
1. JavaScript is Dynamically-Typed. Variable do not have Types, Values have Types. A Variable can have a Value of any Type.
2. JavaScript is Synchronous (runs line-by-line and can block Execution) and Single-Threaded (one Call Stack, i.e., runs one thing at a time) by default,
but it can perform Asynchronous operations (without blocking Execution) by using - Event Loops, Callbacks, Promises and async / await.
CONSOLE SHORTCUTS :-
1. clg
2. log
---------------------------------------------------------------------------------------------------
NAMING CNVENTIONS :-
1. camelCase
2. PascalCase
3. snake_case
4. SCREAMING_SNAKE_CASE
5. kebab-case
6. flatcase
7. Train-Case
---------------------------------------------------------------------------------------------------
COMMENT TYPES :-
1. Single-Line -
// This is a Single-Line Comment.
2. Multi-Line Comment -
/*
This is a Multi-Line Comment.
This is a Multi-Line Comment.
This is a Multi-Line Comment.
*/
3. In-Line Comment -
let x = 5; // This is an In-Line Comment.
4. Documentation Comment - (Structured Multi-Line Comment Meant For Documentation)
/**
* Point 1
* Point 2
* Point 3
*/