+ 1

In writing a code that can be understood by a 5 year old kid, is it preferable to use the switch syntax or the if else if syntax

Considering the fact that the kid does not understand complex codes.

7th Dec 2020, 11:33 AM
The Cool Guy
The Cool Guy - avatar
4 Antworten
+ 2
probably if else
7th Dec 2020, 11:38 AM
durian
durian - avatar
+ 2
Switch statement will be preffered if you high number different inputs to test. For example you ste coding a calculator with many different operation such as + * % - / etc.
7th Dec 2020, 11:43 AM
JaScript
JaScript - avatar
+ 1
If you want to teach little ones there are many softwares are there like Example Scratch for kids it can help them visualize the programing code and help them to fun with learn I have also started with it and its pretty fun
9th Dec 2020, 4:57 AM
Sayyam Jain
Sayyam Jain - avatar
0
I started my child here over the summer. https://www.tynker.com/
8th Dec 2020, 5:51 AM
Chris Coder
Chris Coder - avatar