欢迎光临散文网 会员登陆 & 注册

【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









【Udemy排名第一的JavaScript课程】2023最新完整JavaScri的评论 (共 条)

分享到微博请遵守国家法律