Question: what happens if you quit your job while you have a 401k loan?
Answer: If you quit working or change employers, the loan must be paid back. If you can't repay the loan, it is considered defaulted, and you will be taxed on the outstanding balance, including an early withdrawal penalty if you are not at least age 59 ½. ... You have no flexibility in changing the payment terms of your loan.