How Javascript works?
Source file | JIT(Just In Time) Compiler |
---|---|
HTML file | DOM |
CSS file | CSS |
Javascript | Javascript engine |
API
API는 Application Programming Interface의 약자로, javascript에서 Native API(pre defined functions or properties)를 제공한다.
jQuery는 Native API에 jQuery에서 만든 api를 추가하여 제공하는 것이다.
Primitive, Basic value
- String
- Number : int, float
- Boolean : true, false
- Null/Undefined : empty box
- NaN : not a number
BODMAS (연산자 우선순위)
- Brackets
- pOwer
- Divisions /
- Multiplication *
- Addition +
- Subtraction -