ways of writing ready functions in jquery code example Example: jquery doc on ready $(document).ready(() => { console.log('ready'); });