Comprehending these new terms around coding has certainly been a learning curve for me. Coding and programming is not something I have had experience with in the past. Concatenation? Arithmetic Operators? Outside of coding I don’t know if I would have ever heard these terms. Concatenation was a term that I had a difficult time understanding, but initially hearing the word is a lot scarier than what it means. To fully understand it, you must first learn that a String in Java is. A string is simply a sequence of characters! For example: “Robert” is a string and R O B E R T are the sequence of characters within that string. Once you are familiar with what a string is, you can then move to grasp Concatenation. Simply put, concatenation is joining two strings together. For example: “Robert” (first string) “DiBrino” (second string), when these two strings are joined together, “Robert” + “ DiBrino”, you create a concatenation. To add to that, we have also used the (+) symbol, which is an arithmetic operator. The plus sign is an example of one of the operators that we have covered so far in this course but other operators consist of (-), (/), (*), (%). Taking time to understand the different aspects one by one and how they all work together to create a code, is vital to understanding programming as a whole.
Reader Interactions
Comments
Leave a Reply
You must be logged in to post a comment.
Hello Robert,
Great post, I understand how you are feeling. All this is something very new to me as well and honestly the way you described a string made so much sense to me. Strings were a little confusing to me when it comes to numbers because I was looking at it as a math problem which is not how that works. Using your first and last name as an example to describe a string and how you connect the two of them makes things a lot easier. Also Concatenation does seem like something that is extremely hard but in reality it’s just putting two strings together. Also looking at the different arithmetic operations is also important when learning where to implement them within a code.
I honestly feel the same way. Learning this inside of coding was very interesting for learning Java script, and this is only the surface of knowledge into java script itself.