File tree 1 file changed +22
-0
lines changed
exercises/concept/high-school-sweetheart/.docs
1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -27,3 +27,25 @@ Make sure to reuse `cleanupname` that you defined in the previous step and compo
27
27
julia> firstletter("Jane")
28
28
"J"
29
29
```
30
+
31
+ ## 3. Format the first letter as an initial
32
+
33
+ Implement the ` initial ` method.
34
+ It should take a name and return its first letter, uppercase, followed by a dot.
35
+ Make sure to reuse ` firstletter ` that you defined in the previous step.
36
+
37
+ ``` julia-repl
38
+ initial("Robert")
39
+ "R."
40
+ ```
41
+
42
+ ## 4. Put the initials inside of the heart
43
+
44
+ Implement the ` couple ` method.
45
+ It should take two names and return the initials with emoji hearts around.
46
+ Make sure to reuse ` initial ` that you defined in the previous step.
47
+
48
+ ``` julia-repl
49
+ couple("Blake Miller", "Riley Lewis")
50
+ "❤ B. + R. ❤"
51
+ ```
You can’t perform that action at this time.
0 commit comments