Senait’s Name Badge
JavaScript
10 pts
Senait’s Name Badge
The starter has let first = "Senait"; and let last = "Haile";.
- Create
fullby joiningfirst, a space andlastwith+. Print it. - Print the length of
full. - Print the first letter of
first. - Print the last letter of
last(uselength - 1orat(-1)).
Expected output:
Senait Haile 12 S e
Checklist
- Create
fullfromfirstandlast. - Use
.length. - Get the first and the last letter by index.
- Print the four lines.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
