Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do Bootstrap functions start with a + sign? [duplicate]

I noticed a + sign preceeding a function in the bootstrap.js code and wondered what effect this has or is it just for fun?

twitter bootstrap

like image 430
Timmerz Avatar asked Dec 03 '13 18:12

Timmerz


1 Answers

I think it forces the parser to treat the part following the + as an expression. You can also read Immediately-Invoked Function Expression

Also check JavaScript plus sign in front of function name

like image 170
Rahul Tripathi Avatar answered Nov 07 '22 10:11

Rahul Tripathi