1.  
  2. function buildLabel(name: string): string {
  3. return buildLabel.prefix + name + buildLabel.suffix;
  4. }
  5.  
  6. namespace buildLabel {
  7. export let suffix = "";
  8. export let prefix = "Hello, ";
  9. }
  10.  
  11. console.log(buildLabel("Sam Smith"));
  12.