integer

parseInt(a,10); //Before

Math.floor(a); //Before

a>>0; //Before

~~a; //After

a|0; //After
Copy the code

rounded

Math.round(a); //Before

a+. 5|0; //After
Copy the code

Built-in value

undefined; //Before

void 0; / / After that fast

0[0]; / / After, a little slow
Copy the code
/ / internal value

Infinity;

1/0;
Copy the code

Boolean short notation

true; //Before

!0; //After
Copy the code
// Boolean short

false; //Before

!1; //After
Copy the code

You don’t understand series