Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions solutions/typescript/two-fer/1/two-fer.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* This stub is provided to make it straightforward to get started.
*/

export function twoFer(name?: string): string {
// ^ ^ ^ this is called a return type; it's the type of the
// ^ ^ value that is returned from this function
// ^ ^
// ^ parameters go here
// ^
// allows the tests to import this function and call it
// <-- Your code goes here. You may remove all the commentary in this file.
return `One for ${name || "you"}, one for me.`

}