1function example() {
2
3}
4function exampleParams(string, number, bool) {
5
6}
7//to call a function onclick without passing arguments
8$(selector).click(example);
9//to call a function onclick and pass arguments
10$(selector).click(function() {
11 exampleParams("string example", 3, true);
12});
13