【Udemy排名第一的JavaScript課程】2023最新完整JavaScri
2023-03-12 21:51 作者:bili_31438067153 | 我要投稿

Constant 常量
Var/let 變量
// 一般用let 而不用var
operators?
- Mathematical/algorithmic operators
* * 平方(exponent= to the power of )
+ 可以連接字符串(string)
- Assignment operators
x +=a? (x=x+a)
x *=a (x=x*a)
++ (x=x+1)
- Comparison operators
>
<
Strings and template laterals
template literals
``backtip= show exactly what the string looks like
if else control structure
if () {
}
else {
}
conversion
js can only perform expression
can not perform statement (e.g. if-else statement0
ternary operators
? : ------- if else statement
strict mode: safer and indicate errors
one function to call another function
P 37 June 9
標(biāo)簽: