Setting up exercises? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

Setting up exercises?

I struggle with if else, switch case, do while statements and for loops. Should i set up excersizes to do ten of each every night until i understand it better? I can't remember the syntax, and/or how to actually implement them myself. I'm also curious if and/or how i can take user given prompt () function results and plug those into if else, switch case statements?

16th Jan 2018, 3:03 AM
Michael Hawkins
Michael Hawkins - avatar
2 Answers
+ 11
See this to see how you take input (using prompt () ) and use it for matching conditions using if/else https://code.sololearn.com/WBxAXZDsRQ3V/?ref=app
16th Jan 2018, 3:19 AM
Nikhil
Nikhil - avatar
+ 2
Google Scratch by MIT. it's an amazing place where you can visualise all the statements. https://scratch.mit.edu/ As for JavaScript, you kinda gotta remember the syntax. but once you understand the flow, you should be able to remember it easily.
16th Jan 2018, 3:22 AM
Krishnatheja Vanka
Krishnatheja Vanka - avatar