Z1 Motorsports Interview Question

identify any errors in the PHP and JavaScript code that they have provided.