You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`.charAt()`|`sipAt`| Returns the character of a string at given index (like taking a single sip of coffee). |
24
+
|`.concat()`|`addMilk`| Concatenates a string to another separated with delimiter (like pouring milk into a cup of coffee). |
25
+
|`.includes()`|`hasMilk`| Returns true if given string is found within this string and false if not (like checking if coffee has milk or not). |
26
+
|`.length`|`brewLength`| Returns the length of a string (how "long" the brew is). |
27
+
|`=`|`pourCoffee`| Copies one string to another (like pouring coffee into a new cup). |
28
+
|`===, >, <`|`compareBeans`| Compares two strings (like comparing coffee beans for quality). |
29
+
|`.indexOf()`|`findFirstSip`| Finds the first occurrence of a **character** in a string (like the first sip of coffee). |
30
+
|`.indexOf()`|`findFlavor`| Finds the first occurrence of a **substring** inside a string (like detecting flavors in coffee). |
31
+
|`.repeat()`|`refillCup`| Constructs a new string which contains a specified number of copies of the input string (like refilling a coffee cup a specific amount of times). |
32
+
|`.toLowerCase()`|`coolDown`| Transforms the string to lowercase (like cooling down a cup of coffee). |
33
+
|`.toUpperCase()`|`froth`| Transforms the string to uppercase (like frothing the milk to create a creamy top). |
0 commit comments