a=b
sets the value of variable a to the value of variable b. b=c
sets the value of variable b to the value of variable c.
This persists throughout the loop. When the while restarts, a,b and c keep the values you just set them as.
1
solved Javascript Algorithm Understanding