Strong typed vs weak typed languages
This semester at MATC, I'm taking what is basically an introduction to web development. I've dabbled with HTML and CSS before, and now I'm learning Javascript to go along with it. Now, the only experience I've had with development so far with with C# and Java, which are both strongly typed languages (also known as static typing). When I began dipping my toes into Javascript, I recoiled in… well, I reckon disgust! In Java, let's say you want to keep track of how many apples you have. First, you'll want to make a variable to store the apple count. Since you just want to keep track of whole apples, you'll make it an integer. We'll be doing math with it, so no Strings here. We know exactly what we're working with here - a numerical count of whole apples. In Javascript, I figured it would be pretty much the same right? And then I saw "var". Whoa, hold the phone, where's the int? Is it a number, a String, or a character? What's goin...