The main purpose of the if/else statement is for when we have specific conditions we want to test. The if/else statement was a topic that was, again, more difficult for me to understand, however, I found that the best way for me to comprehend the purpose of the statement was to look to the end of the statement and work backwards. Once I understood what I was looking to accomplish with the code, it became much easier to piece together the proper functions. Additionally, I found the files that we have for the class to be extremely helpful. I found myself further understanding the topic greatly because the activities did a great job explaining how to use these statements properly. Finally, the thing that helped me the most was the Javascript training we were assigned to complete through sololearn. At first implementing these statements can seem challenging, but once you understand their purpose and how they fit into each function it gets much easier to comprehend. Furthermore, continuing through the assignments provided me with the practice needed to continue to develop this knowledge and feel more confident in the things that I have learned.
Leave a Reply
You must be logged in to post a comment.