| Level Navigation: 1 | (2ℹ️) | 3 | 4 | 5 | 6 | (7ℹ️) | (8ℹ️) | (9ℹ️) | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | (37ℹ️) | 38⚡ | 39⚡ | 40⚡ | 41⚡ | 42 | 43⚡ | 44⚡ | 45 | 46 | (47ℹ️) |
addSignatureNow let’s add a function that adds a signature to a message.
Function signature:
addSignature(message, from) → string
Examples:
addSignature('Happy Birthday, Alex!', 'Sam') → "Happy Birthday, Alex! — from Sam"addSignature('Happy New Year, Sam!', 'Alex') → "Happy New Year, Sam! — from Alex"Your task:
addSignature firstTry it: Add tests and the function to your greeting.test.js and greeting.js files!