/* ** + can quickly convert string numbers to number ** */

var str = "100";
console.log(typeof(str));
console.log(typeof(+str));

/* ** ~~ Double tilde can quickly take integers, remove decimal points after the decimal point, no rounding ** */

var number = 3.954;
console.log(~~number);

/* ** self-executing function **! Function (function(){})() ** */ (function(){})() ** */

+function(){
  console.log("+ + + + + + + + + + + + + + + + + + + + + + + +"); } (); -function(){
  console.log("-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -"); } (); !function(){
  console.log("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"); } (); ~function(){
  console.log("~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~"); } ();Copy the code