Postfix increment
let x = 3;
y = x++;
// y = 3
// x = 4
Prefix increment
let a = 2;
b = ++a;
// a = 3
// b = 3
be cautious dont use postfix left value remain same .
let x = 3;
y = x++;
// y = 3
// x = 4
let a = 2;
b = ++a;
// a = 3
// b = 3
be cautious dont use postfix left value remain same .
There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...
No comments:
Post a Comment