-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
49 lines (40 loc) · 1.22 KB
/
readme.txt
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
Javascript
----------
JavaScript is a synchronous, single threaded programming language
it's run top to bottom
Synchronous
----------
Synchronous is a blocking architecture, so the execution of each operation depends on completing the one before it
Asynchronous
---------
Asynchronous is a non-blocking architecture, so the execution of one task isn't dependent on another. Tasks can run simultaneously.
data types
----------
Primitive Types
----------------
is have is not an object and has no methods or properties
string, number, boolean, null, undefined
The Object Datatype
-----------
array, object, date
Scope
-------
Block Scope
------
Variables declared with the let keyword inside a { } block cannot be accessed from outside the block
Variables declared with the var keyword can NOT have block scope
Function Scope
---------
Each function creates a new scope
var, let and const
same name can be declare inside the different function
Global Scope
---------
A variable declared outside
Built-in objects
----------
number, string, math, date, error
Type Casting
----------
Type conversion means the transfer of data from one data type to another
Explicit Type and Implicit Type Casting