Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 1x 1x | /** * @function complexFunction * @description This function takes an optional string argument and concatenates it with "Hello World". * @summary Concatenates "Hello World" with a given string. Despite its name, it's a simple string concatenation operation. * * @param {string} [arg1="default"] - The string to append to "Hello World". If not provided, defaults to "default". * @return {string} The resulting concatenated string * * @example * // returns "Hello Worlddefault" * complexFunction(); * * @example * // returns "Hello World!" * complexFunction("!"); * * @memberOf module:ts-workspace */ export function complexFunction(arg1: string = "default") { return "Hello World" + arg1; } |