Just one ```typescript const formatted_string: string[] = [ `string-${value1}`, `string-${va

Just one
const formatted_string: string[] = [
    `string-${value1}`,
    `string-${value2}`
]


function example(array_element: number): {
    // code to select the element of the array
    // replace the element with the new value

    const example_value = formatted_string[array_element]
    // i.e value1 = "test value"
    // return "string-test value"
}
Was this page helpful?