Use-destructuring-assignment-to-assign-variables

thanks to you it is working…
I am confused about one more thing here~

function getLength(str) {
const {length : len} = str ; // change this

return len;
}
console.log(getLength(‘FreeCodeCamp’));

HERE the function is returning the length of the string… " const {length : len} = str "
IS ‘length’ a pre-defined function (str.length) ?
is it a property we have on string ?