This protein functions as a defense against chitin containing fungal pathogens. Random endo-hydrolysis of N-acetyl-beta-D-glucosaminide (1->4)-beta-linkages in chitin and chitodextrins. By ethylene. Belongs to the glycosyl hydrolase 18 family. Chitinase class II subfamily.