One Pager Cheat Sheet
- In this lesson, we will explore basic types of programming languages, focusing on the
stringtype and operations defined on strings. - Strings in programming languages are a data type which is a
sequence of charactersthat can be assigned to variables, accessed and manipulated using various properties and methods in order to perform various operations. - Strings in
JavaScriptcan be declared using either single or double quotation marks, as demonstrated in the following code block. - Indexing is an important concept when manipulating strings, as they are indexed starting from
0and not1. - Yes, the
code blockis valid and declares a string with a value of"India". - Strings in most programming languages can contain both lowercase and uppercase letters, and
caseis important in the output of the code. - String operations are
definedon different data types, including strings, to perform comparison, combination, removal, and addition of characters/strings. - In JavaScript, strings can be manipulated through
concatenation,propertiessuch aslength,indexOfandtoLowerCase(), as outlined in the documentation provided by the Mozilla Developer Network. - The code block combines two strings using
string concatenation, resulting inSara12as the output. - The code will output the index position of the letter
fin theanimalvariable, which is4. - Strings are immutable and must be declared with
double quotation marksto includesingle quotation marksinside. - We
learnedaboutstring operationsand theirbenefits, which can help usmodify stringswithout having to recreate them.


