How to make a structure function call object?

How to repeat a design like:$(window).on('load', function(){/*something*/}); as in jQuery?
June 3rd 19 at 19:37
0 answer

Find more questions by tags JavaScript