The "lenght" function cannot be

please help me.
the “lenght” function cannot be

I want to make a disable button when the date input has not been filled.

export function datePicker1_change(event) {
if($w('#datePicker1').value.lenght > 0) {
        $w('#button1').enable();
    }else{$w('#button1').disable();
    }}

This is a typo. It should be length