At any hearing under the code, the court, if requested by the child, shall allow the child to address the court, if the child is 10 years of age or older.