Destructuring objects - how do this code calculate the str length we are not using str.length?

This is how i explained to another camper on another post: