JavaScript Basics #8: Strings

In the previous article, we assigned a string to a variable (let myName = ‘Jan’;). Now, let’s see how to concatenate and interpolate strings. Concatenation Concatenation is a fancy word for combination, and it’s performed with a + operator. It allows us…

Continue Reading

iOS Development #9: Custom Types

If you’ve followed me so far, you should have three variables in your program, that hold your age, year of birth and name. Let’s say I want to store this information about my daughter Julie as well. I could store…

Continue Reading

iOS Development #8: Strings

String is another important and useful data type. It’s also a struct like Int but String gives us much more functionality. Strings are always wrapped with quotes, preferably double quotes (“…”). Since String is actually a group of individual characters, we can count those characters. Let’s say…

Continue Reading

iOS Development #7: Type Annotation & Inference

Type Annotation You are already familiar with type annotation which begins with a colon : and ends with a specific type Int. Type annotation specifies the type of a variable explicitly and tells the computer that the variable can hold only values of the specific…

Continue Reading

iOS Development #5: Numbers

In the previous chapter, we shortly discussed some basic data types, namely numbers, text (string), and logical values (boolean). Let’s take a look at numbers in more details now. Whole numbers Int (which we used to declare the age variable) stands for integer. This…

Continue Reading