what does it do in code below?
jQuery[addClass](...);
is it same as jQuery.addClass() ?
Yes, you can use dot notation or brackets notation:
$.show()
OR
$['show']()
Similar question JavaScript property access: dot notation vs. brackets?