main function

The type and parameter of the main function are optional, the shortest main function is main(){}. The parameters of the main function can be used to declare variables:

main(argv,b){b=1;…}
// or
main(argv,{b=1}){…}
// instead of
main(argv){var b=1;…}

main({a,b,c=0}){…}
// instead of
main(){var a,b,c=0;…}

Other tips