(x + y++) * n
let x = 1
let y = 2
let n = 3
let sum = (x + y++) * n
/*
sum = 9
y = 3
*/
let s = x * y++
/*
s = 3
s = (x) * (y++)
优先级顺序:
+ > ++ > *
*/
let x = 1
let s = (4 + x++) + ( 4 + x++)
/* s = 11
第一个()
4+1
x++,x=2
第一个()
4+2
s = 11
x = 3
*/
(x + y++) * n
let x = 1
let y = 2
let n = 3
let sum = (x + y++) * n
/*
sum = 9
y = 3
*/
let s = x * y++
/*
s = 3
s = (x) * (y++)
优先级顺序:
+ > ++ > *
*/
let x = 1
let s = (4 + x++) + ( 4 + x++)
/* s = 11
第一个()
4+1
x++,x=2
第一个()
4+2
s = 11
x = 3
*/