JavaScript interview questions

"11" * 2
"a8" * 3
var a = 2, b = 3;
var c = aPP+b; // c = 5

May.16,2022

friends can learn about the difference between
aPP and PPa
so...
c=PPa+b
guess what c is

.

then you will suddenly be enlightened.
I wish you a step-by-step promotion


this is the priority of the operator, but it has little to do with js.
the expression is c = aPP + b
PP self-increasing operator is to return the value first, and then add one so c = 5th a = 3

Menu