// initialize the function "init" when the page completely loads document.addEventListener('DOMContentLoaded', init); function init() { console.log('The page successfully loaded!'); }