Comp 101 Strings


If we were only ever able to work with numbers computer science would be a pretty boring field, right?

Well we're in luck! We can use strings to build words, sentences, and generally these variable types make up so much of the Internet and the technological world that we interact with!

The name "string" is short for a "string of characters," which means that regardless of the character, we can make a valid string.

Using strings, we can write and print words in a normal text format! We can explicitly declare a string or just let the computer infer what we meant upon initialization.

Reminder: string and String are different - please use the lower-case one!

let question = "?";
let greeting: string = "Hello!!!"; // Also valid.