employer cover photo
employer logo
employer logo

Mindfire Solutions

Is this your company?

Mindfire Solutions interview question

difference between document.ready and anonymous function in javascript

Interview Answers

Anonymous

18 Nov 2013

Anonymous function will be executed firs.

Anonymous

11 Aug 2015

Self-invoking functions runs instantly i.e will be executed as soon as it is encountered in the Javascript. $(document).ready(function() {})(); will trigger only after dom elements are completely constructed.