While Loop Structure Javascript Function Types Arduino Board