Action functions available :
Test functions available :
Window to edit your JavaScript code
Test your script
Résult of the execution of your code
The goal of this exercice is to encount nested conditionals and learn how to use them.
The robot can throw 4 balls in the air, then catch and show one ball. It can also check what kind of ball it is: small or not small, blue or not blue.
The robot must show whether it caught the small blue ball, the small yellow ball, the large blue ball or the large yellow ball.
Good work.
◊ ◊ ◊
© Rupert Meurice de Dormale 2017
All rights reserved, reproduction in whole or in part of the interface and / or the code forbidden without the written agreement of the author
The drawings of the robots are of Jean-Baptiste Sonnet.