Web Editor : not defined width

My advice to you was this: :pensive:

Meaning you should check img before allowing that triple for () {} loop. :face_with_monocle:

Also, this is an “infinite” loop block :arrow_right:while (img) {

Given there’s nothing inside that block which can mutate variable img to “falsy”, it’s gonna repeat itself ad infinitum once it starts! :infinity: