+ 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?
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
+ 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.