9af479bc43
custom-signs
1.3 KiB
1.3 KiB
Hints
1. Build an occasion sign
- template strings (Template literals) allow for substitution of one or more strings and embedded expressions
2. Build a birthday sign
- template strings (Template literals) allow for substitution of strings and embedded expressions
- ternary operator is a short-hand way of operating on conditions, similar to
if/else
. It can be easier to use in template strings because it is condensed.
3. Build a graduation sign
- template strings allow strings to span onto multiple lines.
4. Compute the cost of a sign
- Figure out the
length
of the characters. - Only show the first two decimal numbers using fixed-point notation.