resulting printing function after debugging in browser